Sha256: ffe9dd71f695cede67684dd285573721db9bcc9f74d4dac23eda290ba97b67d1

Contents?: true

Size: 546 Bytes

Versions: 8

Compression:

Stored size: 546 Bytes

Contents

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

describe Restfully do
  after do
    Restfully.adapter = Restfully::HTTP::Adapters::RestClientAdapter
  end
  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

8 entries across 8 versions & 1 rubygems

Version Path
restfully-0.6.3 spec/restfully_spec.rb
restfully-0.6.2 spec/restfully_spec.rb
restfully-0.6.1 spec/restfully_spec.rb
restfully-0.6.0 spec/restfully_spec.rb
restfully-0.5.10 spec/restfully_spec.rb
restfully-0.5.9 spec/restfully_spec.rb
restfully-0.5.8 spec/restfully_spec.rb
restfully-0.5.7 spec/restfully_spec.rb