spec/memento/action/update_spec.rb in memento-0.3.2 vs spec/memento/action/update_spec.rb in memento-0.3.3

- old
+ new

@@ -87,11 +87,11 @@ end describe "with mergeable recorded changes" do before do Memento.instance.memento(@user) do - @project.update_attributes({:notes => "Bla!"}) + @project.update_attributes({:notes => "Bla\nBla!"}) end Memento::State.last.update_attribute(:created_at, 1.minute.from_now) @result = Memento::Session.first.undo.first @object = @result.object end @@ -103,10 +103,10 @@ it "should return correctly updated object" do @object.class.should eql(Project) @object.name.should eql("P1") @object.customer.should be_nil @object.closed_at.to_s.should eql(@time1.to_s) - @object.notes.should eql("Bla!") + @object.notes.should eql("Bla\nBla!") end describe "when second state is undone" do before do @result = Memento::Session.first.undo.first \ No newline at end of file