spec/api-client/collection_spec.rb in api-client-2.0.0.rc1 vs spec/api-client/collection_spec.rb in api-client-2.0.0.rc2
- old
+ new
@@ -2,20 +2,20 @@
describe ApiClient::Collection do
let(:user) { User.new }
before :each do
- stub_request(:get, "http://api.example.com/users").to_return(:body => [ {"a" => "b"}, {"a" => "b2"} ].to_json)
+ stub_request(:get, 'http://api.example.com/users').to_return(:body => [ { 'a' => 'b' }, { 'a' => 'b2' } ].to_json)
User.stub(:new => user)
- @collection = ApiClient::Collection.new(User, "users")
+ @collection = ApiClient::Collection.new(User, 'users')
end
- it "should include enumerable module" do
+ it 'should include enumerable module' do
@collection.should respond_to(:first)
end
- describe "#initialize" do
- it "Should initialize a collection of Objects" do
+ describe '.initialize' do
+ it 'Should initialize a collection of Objects' do
@collection.collection.should == [user, user]
end
end
end
\ No newline at end of file