Skip to content

Commit

Permalink
Use Ruby 1.9 Hash Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
McRip committed Jul 31, 2015
1 parent 44017a2 commit 52b8e00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/skipper_spec.rb
Expand Up @@ -26,7 +26,7 @@
context "without preserve (default)" do
it "should have no timestamp" do
skipper = Skipper.create!(:another_timestamp => t1)
skipper.update_attributes!(:another_timestamp => t2, name: "Foobar")
skipper.update_attributes!(:another_timestamp => t2, :name => "Foobar")
skipper = skipper.versions.last.reify
expect(skipper.another_timestamp).to be(nil)
end
Expand All @@ -35,8 +35,8 @@
context "with preserve" do
it "should preserve its timestamp" do
skipper = Skipper.create!(:another_timestamp => t1)
skipper.update_attributes!(:another_timestamp => t2, name: "Foobar")
skipper = skipper.versions.last.reify(preserve: true)
skipper.update_attributes!(:another_timestamp => t2, :name => "Foobar")
skipper = skipper.versions.last.reify(:preserve => true)
expect(skipper.another_timestamp).to eq(t2)
end
end
Expand Down

0 comments on commit 52b8e00

Please sign in to comment.