Skip to content

Commit

Permalink
Remove unnecessary assertions. We should only test the before_seq isn…
Browse files Browse the repository at this point in the history
…'t same to the after_seq when using sequencer.
  • Loading branch information
kennyj committed May 15, 2012
1 parent 1c3e5be commit 53debf1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions activerecord/test/cases/base_test.rb
Expand Up @@ -1514,11 +1514,7 @@ def test_clear_cash_when_setting_table_name
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
Expand Down

0 comments on commit 53debf1

Please sign in to comment.