Merge pull request #1262 from dmathieu/dummy_without_tests

Create the dummy app if there's no test_unit but there's a dummy_path
This commit is contained in:
José Valim 2011-05-24 04:59:28 -07:00
commit cedadad891
2 changed files with 8 additions and 1 deletions

@ -202,7 +202,7 @@ def create_test_files
end
def create_test_dummy_files
return if options[:skip_test_unit]
return if options[:skip_test_unit] && options[:dummy_path] == 'test/dummy'
create_dummy_app
end

@ -182,6 +182,13 @@ def test_passing_dummy_path_as_a_parameter
assert_file "spec/dummy/config/application.rb"
assert_no_file "test/dummy"
end
def test_creating_dummy_without_tests_but_with_dummy_path
run_generator [destination_root, "--dummy_path", "spec/dummy", "--skip-test-unit"]
assert_file "spec/dummy"
assert_file "spec/dummy/config/application.rb"
assert_no_file "test"
end
def test_skipping_gemspec
run_generator [destination_root, "--skip-gemspec"]