test/unit/serializer_test.rb in paper_trail-3.0.1 vs test/unit/serializer_test.rb in paper_trail-3.0.2

- old
+ new

@@ -63,11 +63,11 @@ assert_equal ActiveSupport::JSON.encode(@original_fluxor_attributes), @fluxor.versions[1].object end end should 'store object_changes' do - initial_changeset = {"name" => [nil, "Some text."], "id" => [nil, 1]} + initial_changeset = {"name" => [nil, "Some text."], "id" => [nil, @fluxor.id]} second_changeset = {"name"=>["Some text.", "Some more text."]} assert_equal initial_changeset, @fluxor.versions[0].changeset assert_equal second_changeset, @fluxor.versions[1].changeset end end @@ -105,10 +105,10 @@ assert_equal ActiveSupport::JSON.encode(@original_fluxor_attributes), @fluxor.versions[1].object end end should 'store object_changes' do - initial_changeset = {"id" => [nil, 1]} + initial_changeset = {"id" => [nil, @fluxor.id]} second_changeset = {"name"=>[nil, "Some more text."]} assert_equal initial_changeset, @fluxor.versions[0].changeset assert_equal second_changeset, @fluxor.versions[1].changeset end end