test/control_test.rb in vestal_versions-1.0.1 vs test/control_test.rb in vestal_versions-1.0.2

- old
+ new

@@ -120,11 +120,11 @@ should 'not create a version' do assert_equal @count, @user.versions.count end should 'update the last version' do - last_version = @user.versions.last + last_version = @user.versions(true).last assert_equal @last_version.id, last_version.id assert_not_equal @last_version.attributes, last_version.attributes end end @@ -140,10 +140,10 @@ should 'not create a version' do assert_equal @count, @user.versions.count end should 'update the last version' do - last_version = @user.versions.last + last_version = @user.versions(true).last assert_equal @last_version.id, last_version.id assert_not_equal @last_version.attributes, last_version.attributes end end end