added notes

This commit is contained in:
albert
2010-02-24 15:40:55 -05:00
parent 7bb935256b
commit 55700efeb1
17 changed files with 462 additions and 27 deletions

View File

@@ -89,6 +89,7 @@ class ArtistTest < ActiveSupport::TestCase
should "revert to prior versions" do
user = Factory.create(:user)
reverter = Factory.create(:user)
artist = nil
assert_difference("ArtistVersion.count") do
artist = Factory.create(:artist, :other_names => "yyy")
@@ -103,7 +104,7 @@ class ArtistTest < ActiveSupport::TestCase
first_version = ArtistVersion.first
assert_equal("yyy", first_version.other_names)
artist.revert_to!(first_version)
artist.revert_to!(first_version, reverter.id, "127.0.0.1")
artist.reload
assert_equal("yyy", artist.other_names)
end