diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-23 07:32:42 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-05-23 08:48:34 -0700 |
commit | 4f8ba6aa6e69a6e255b7cf2aaf5da159cbbe8c96 (patch) | |
tree | a1f44ed27b07d16892d5a1dc83e7d5236a1f4006 /activerecord | |
parent | b318758bda9f9ea9c94abb81e8a66a8b48cb720c (diff) | |
download | rails-4f8ba6aa6e69a6e255b7cf2aaf5da159cbbe8c96.tar.gz rails-4f8ba6aa6e69a6e255b7cf2aaf5da159cbbe8c96.tar.bz2 rails-4f8ba6aa6e69a6e255b7cf2aaf5da159cbbe8c96.zip |
Remove duplicated setup in test
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index 61bca976f7..9602252b2e 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -1,10 +1,8 @@ require "cases/helper" class SchemaDumperTest < ActiveRecord::TestCase - def setup - super + setup do ActiveRecord::SchemaMigration.create_table - @stream = StringIO.new end def standard_dump @@ -25,7 +23,8 @@ class SchemaDumperTest < ActiveRecord::TestCase end def test_magic_comment - assert_match "# encoding: #{@stream.external_encoding.name}", standard_dump + output = standard_dump + assert_match "# encoding: #{@stream.external_encoding.name}", output end def test_schema_dump |