diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-17 18:09:13 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-17 18:43:40 +0100 |
commit | d0454e57661ceeaebd6f3fce4a608ec624257b19 (patch) | |
tree | ad40d90ac5ef91a167a4f24822650a05acb73431 /railties/test/generators | |
parent | e195b48f21bac800dbad5acc04ac732930d36c35 (diff) | |
download | rails-d0454e57661ceeaebd6f3fce4a608ec624257b19.tar.gz rails-d0454e57661ceeaebd6f3fce4a608ec624257b19.tar.bz2 rails-d0454e57661ceeaebd6f3fce4a608ec624257b19.zip |
Add readme as method in Rails::Generators::Actions (as we had in 2.3)
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/actions_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb index 5929db6318..3585e6e7c0 100644 --- a/railties/test/generators/actions_test.rb +++ b/railties/test/generators/actions_test.rb @@ -210,6 +210,12 @@ class ActionsTest < Rails::Generators::TestCase assert_file 'config/routes.rb', /#{Regexp.escape(route_command)}/ end + def test_readme + run_generator + Rails::Generators::AppGenerator.expects(:source_root).returns(destination_root) + assert_match(/Welcome to Rails/, action(:readme, "README")) + end + protected def action(*args, &block) |