[WIP] Faraday

@jcwilk Another proof of concept...

I created a Faraday adapter using crystal lake. I'm not sure this is the best strategy for the longterm implementation, but it seems to work.
yeah, i understand, but faraday with rack as an adapter also does that and
is something we don't have to maintain. do you think we could use
faraday+rack instead of crystal lake or are there features beyond hooking a
rack app up to a http-like ruby interface that it provides?

On Fri, Sep 19, 2014 at 2:59 PM, Chris Friedrich <notifications@github.com>
wrote:

> In spec/requests/posting_spec.rb:
>
> > @@ -3,8 +3,9 @@
> >  describe 'Posting' do
> >
> >    let(:user_params) { { user: FactoryGirl.attributes_for(:user) } }
> > +  let(:conn) { Faraday.new(url: 'http://www.crystallake.com') { |f| f.adapter :crystal_lake } }
>
> crystal_lake is more than an HTTP adapter replacement. It's an HTTP-less
> adapter. It let's us simulate a Rails HTTP request to another engine's API
> endpoint without leaving the Rails instance (no network connection needed.)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lumoslabs/crystal_lake/pull/1/files#r17812031>.
>