Skip to content

Commit

Permalink
Fix readme tests
Browse files Browse the repository at this point in the history
Related to the change introduced in 6cf47c5.
  • Loading branch information
carlosantoniodasilva committed Jan 8, 2013
1 parent 9b6de9c commit a0730e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/test/generators/actions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0730e0

Please sign in to comment.