1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix readme tests

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

View file

@ -203,14 +203,14 @@ class ActionsTest < Rails::Generators::TestCase
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