test/creation_test.rb in laserlemon-vestal_versions-0.4.3 vs test/creation_test.rb in laserlemon-vestal_versions-0.4.4
- old
+ new
@@ -25,17 +25,9 @@
should 'not increase when reverting to the current version' do
@user.revert_to!(@user.version)
assert_equal @count, @user.versions.count
end
- should 'not increase when reverting to an identical version' do
- @user.update_attribute(:name, 'Steve Jobs')
- @user.update_attribute(:name, @name)
- count = @user.versions.count
- @user.revert_to!(:first)
- assert_equal count, @user.versions.count
- end
-
context 'after an update' do
setup do
@initial_count = @count
@name = 'Steve Jobs'
@user.update_attribute(:name, @name)