mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
9b6de9c34e
commit
a0730e0027
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue