Skip to content

Commit

Permalink
Improve test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Sprenger committed May 25, 2011
1 parent 360b98f commit 22be5ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion railties/test/generators/plugin_new_generator_test.rb
Expand Up @@ -199,7 +199,9 @@ def test_creating_dummy_without_tests_but_with_dummy_path
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
Expand Down

0 comments on commit 22be5ca

Please sign in to comment.