From 52b8e0033cb7710170461a2cc7d9fd4ec6342609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Kr=C3=B6ger?= Date: Fri, 31 Jul 2015 11:10:01 +0200 Subject: [PATCH] Use Ruby 1.9 Hash Syntax --- spec/models/skipper_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/skipper_spec.rb b/spec/models/skipper_spec.rb index 6dce0023e..9f1657afc 100644 --- a/spec/models/skipper_spec.rb +++ b/spec/models/skipper_spec.rb @@ -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 @@ -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