spec/memento/action/update_spec.rb in memento-0.3.6 vs spec/memento/action/update_spec.rb in memento-0.3.7

- old
+ new

@@ -89,11 +89,11 @@ describe "with mergeable recorded changes" do before do Memento.instance.memento(@user) do @project.update_attributes({:notes => "Bla\nBla!"}) end - Memento::State.last.update_attribute(:created_at, 1.minute.from_now) + Memento::State.last.update_attributes(:created_at => 1.minute.from_now) @result = Memento::Session.first.undo.first @object = @result.object end it "should be success" do @@ -154,10 +154,10 @@ describe "with unmergeable recorded changes" do before do Memento.instance.memento(@user) do @project.update_attributes!({:name => "P3"}) end - Memento::State.last.update_attribute(:created_at, 1.minute.from_now) + Memento::State.last.update_attributes(:created_at => 1.minute.from_now) @result = Memento::Session.first.undo.first @object = @result.object end it "should fail" do \ No newline at end of file