test/creation_test.rb in laserlemon-vestal_versions-0.4.2 vs test/creation_test.rb in laserlemon-vestal_versions-0.4.3
- old
+ new
@@ -42,15 +42,15 @@
@user.update_attribute(:name, @name)
@count = @user.versions.count
end
should 'increase by one' do
- assert_equal (@initial_count + 1), @count
+ assert_equal @initial_count + 1, @count
end
should 'increase by one when reverted' do
@user.revert_to!(:first)
- assert_equal (@count + 1), @user.versions.count
+ assert_equal @count + 1, @user.versions.count
end
should 'not increase until a revert is saved' do
@user.revert_to(:first)
assert_equal @count, @user.versions.count