diff options
author | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-25 15:12:54 +0200 |
---|---|---|
committer | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-25 15:12:54 +0200 |
commit | 22be5ca8b91b1ee8bf2aeb8ae29a64a45968ac24 (patch) | |
tree | 252bd3c7b41e7e54235aae15c36e238e2fa216d6 /railties/test | |
parent | 360b98f0618873e5c0a41f0a5e029868b8deadf9 (diff) | |
download | rails-22be5ca8b91b1ee8bf2aeb8ae29a64a45968ac24.tar.gz rails-22be5ca8b91b1ee8bf2aeb8ae29a64a45968ac24.tar.bz2 rails-22be5ca8b91b1ee8bf2aeb8ae29a64a45968ac24.zip |
Improve test assertion
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 269b2c8687..b93e33f61a 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -199,7 +199,9 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase def test_skipping_test_unit run_generator [destination_root, "--skip-test-unit"] assert_no_file "test" - assert_no_match(/s.test_files = Dir\["test\/\*\*\/\*"\]/, File.read(File.join(destination_root, "bukkits.gemspec"))) + assert_file "bukkits.gemspec" do |contents| + assert_no_match /s.test_files = Dir\["test\/\*\*\/\*"\]/, contents + end end def test_skipping_gemspec |