Sha256: efd734262c73db2d0d40cdecd619c08c9f7ce8014eb31046a93d7111814bb769

Contents?: true

Size: 460 Bytes

Versions: 12

Compression:

Stored size: 460 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)+'/spec_helper')

describe Restfully do
  it "should have a default adapter" do
    Restfully.adapter.should == Restfully::HTTP::Adapters::RestClientAdapter
  end
  
  it "should allow setting other adapters" do
    require 'restfully/http/adapters/patron_adapter'
    Restfully.adapter = Restfully::HTTP::Adapters::PatronAdapter
    Restfully.adapter.should == Restfully::HTTP::Adapters::PatronAdapter
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
restfully-0.5.6 spec/restfully_spec.rb
restfully-0.5.5 spec/restfully_spec.rb
restfully-0.5.4 spec/restfully_spec.rb
restfully-0.5.3 spec/restfully_spec.rb
restfully-0.5.2 spec/restfully_spec.rb
restfully-0.5.1 spec/restfully_spec.rb
restfully-0.5.0 spec/restfully_spec.rb
restfully-0.4.1 spec/restfully_spec.rb
restfully-0.4.0 spec/restfully_spec.rb
restfully-0.3.2 spec/restfully_spec.rb
restfully-0.3.1 spec/restfully_spec.rb
restfully-0.3.0 spec/restfully_spec.rb