Remove whitespaces and add missing test.

This commit is contained in:
José Valim 2010-11-11 20:07:47 +01:00
parent f912a359aa
commit c63600576a
2 changed files with 12 additions and 6 deletions

@ -186,6 +186,13 @@ def test_file_is_added_for_backwards_compatibility
assert_file 'lib/test_file.rb', 'heres test data'
end
def test_test_unit_is_removed_from_frameworks_if_skip_test_unit_is_given
run_generator [destination_root, "--skip-test-unit"]
assert_file "config/application.rb" do |file|
assert_match /config.generators.test_framework = false/, file
end
end
protected
def action(*args, &block)

@ -18,7 +18,6 @@
test/dummy
)
class PluginNewGeneratorTest < Rails::Generators::TestCase
include GeneratorsTestHelper
destination File.join(Rails.root, "tmp/bukkits")