diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-06-19 16:07:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-19 16:07:10 -0400 |
commit | c6d19fc85189b86c0b1422fa13b8f5182b4fd4d0 (patch) | |
tree | 1841f38e1a37e2a9caed979eab362c143b68e9fb /railties/test | |
parent | 44c269a5b48a73e9d8b3d6a0688cbc4f4ca877a7 (diff) | |
parent | e062c961e9867b938d4e7a33a25a3de8d0fa67df (diff) | |
download | rails-c6d19fc85189b86c0b1422fa13b8f5182b4fd4d0.tar.gz rails-c6d19fc85189b86c0b1422fa13b8f5182b4fd4d0.tar.bz2 rails-c6d19fc85189b86c0b1422fa13b8f5182b4fd4d0.zip |
Merge pull request #29493 from y-yagi/deprecate_capify
Deprecate an `capify!` method in generators and templates
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/actions_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb index 360e8e97d7..03b29be907 100644 --- a/railties/test/generators/actions_test.rb +++ b/railties/test/generators/actions_test.rb @@ -278,9 +278,12 @@ class ActionsTest < Rails::Generators::TestCase end def test_capify_should_run_the_capify_command - assert_called_with(generator, :run, ["capify .", verbose: false]) do - action :capify! + content = capture(:stderr) do + assert_called_with(generator, :run, ["capify .", verbose: false]) do + action :capify! + end end + assert_match(/DEPRECATION WARNING: `capify!` is deprecated/, content) end def test_route_should_add_data_to_the_routes_block_in_config_routes |