diff options
author | kennyj <kennyj@gmail.com> | 2012-05-16 01:33:52 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-05-16 01:33:52 +0900 |
commit | 53debf145683c1cd9ef1cad14d42a3f64ddbf9af (patch) | |
tree | 43500443325031794d6b8c20aaae9a4174077198 /activerecord/test/cases | |
parent | 1c3e5bee3d426666da9bbab84f1939c5f58b5640 (diff) | |
download | rails-53debf145683c1cd9ef1cad14d42a3f64ddbf9af.tar.gz rails-53debf145683c1cd9ef1cad14d42a3f64ddbf9af.tar.bz2 rails-53debf145683c1cd9ef1cad14d42a3f64ddbf9af.zip |
Remove unnecessary assertions. We should only test the before_seq isn't same to the after_seq when using sequencer.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index c1b0cb8886..d7d14856d0 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1514,11 +1514,7 @@ class BasicsTest < ActiveRecord::TestCase after_seq = Joke.sequence_name assert_not_equal before_columns, after_columns - unless before_seq.nil? && after_seq.nil? - assert_not_equal before_seq, after_seq - assert_equal "cold_jokes_id_seq", before_seq - assert_equal "funny_jokes_id_seq", after_seq - end + assert_not_equal before_seq, after_seq unless before_seq.nil? && after_seq.nil? end def test_dont_clear_sequence_name_when_setting_explicitly |