Fix readme tests

Related to the change introduced in 6cf47c533d7d6784d34fc31406a335555e0c32b8.
This commit is contained in:
Carlos Antonio da Silva 2013-01-07 22:31:11 -02:00
parent 9b6de9c34e
commit a0730e0027

@ -203,14 +203,14 @@ def test_route_should_add_data_to_the_routes_block_in_config_routes
def test_readme
run_generator
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
assert_match(/Welcome to Rails/, action(:readme, "README.rdoc"))
assert_match "application up and running", action(:readme, "README.rdoc")
end
def test_readme_with_quiet
generator(default_arguments, quiet: true)
run_generator
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
assert_no_match(/Welcome to Rails/, action(:readme, "README.rdoc"))
assert_no_match "application up and running", action(:readme, "README.rdoc")
end
def test_log