Sha256: 7acbb3b4084691e48c8454e31fa89cbad99c25065e9ac02a54d6d6047d9b5871
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper')) class ReloadTest < Test::Unit::TestCase context 'Reloading a reverted model' do setup do @user = User.create(:name => 'Steve Richert') first_version = @user.version @user.update_attribute(:last_name, 'Jobs') @last_version = @user.version @user.revert_to(first_version) end should 'reset the version number to the most recent version' do assert_not_equal @last_version, @user.version @user.reload assert_equal @last_version, @user.version end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitfluent-vestal_versions-1.1.0 | test/reload_test.rb |