Permalink
Browse files

Fixes tests in Ruby 1.8

  • Loading branch information...
1 parent cfd59b0 commit e513a237bc4920b7b3ce096de255e3576db4bd2c @vesan committed Jul 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/spec_helper.rb
View
@@ -89,7 +89,7 @@ def fixture(file)
end
it "accepts parameters" do
- subject.object_class.should_receive(:new).with({an: "attribute"}, subject)
+ subject.object_class.should_receive(:new).with({:an => "attribute"}, subject)
subject.build(an: "attribute")
end
end
@@ -246,7 +246,7 @@ def fixture(file)
it "sets the updated attributes received from the server" do
collection_resource.stub(:save_resource).and_return(
- {:success => true, :resource => {id: 9999}})
+ {:success => true, :resource => {:id => 9999}})
subject.save
subject.id.should eq 9999
end

0 comments on commit e513a23

Please sign in to comment.