Sha256: 444e46116814e52b1d0453ae2cb620ad7586fd1c27517a24ae238a24b18c2909
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
require 'helper' describe Gems do context "when delegating to a client" do before do stub_get("/api/v1/gems/rails.json").to_return(:body => fixture("rails.json")) end it "should get the correct resource" do Gems.info('rails') a_get("/api/v1/gems/rails.json").should have_been_made end it "should return the same results as a client" do Gems.info('rails').should == Gems::Client.new.info('rails') end end describe '.respond_to?' do it 'should take an optional argument' do Gems.respond_to?(:new, true).should be_true end end describe ".new" do it "should return a Gems::Client" do Gems.new.should be_a Gems::Client end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gems-0.0.4 | spec/gems_spec.rb |
gems-0.0.3 | spec/gems_spec.rb |
gems-0.0.2 | spec/gems_spec.rb |
gems-0.0.1 | spec/gems_spec.rb |