diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-09 13:24:17 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-09 13:24:17 -0800 |
commit | 34238422b903ee832f8feec73801111768fb8d40 (patch) | |
tree | bda198b2f76a425102d81862cf06be0b39dd4c1f /railties/test | |
parent | 9c5cc89ede353c1b756d294ee28e4d011655b164 (diff) | |
parent | afdb84a1fe6694b667a06a8bfe77a5c5fbce837d (diff) | |
download | rails-34238422b903ee832f8feec73801111768fb8d40.tar.gz rails-34238422b903ee832f8feec73801111768fb8d40.tar.bz2 rails-34238422b903ee832f8feec73801111768fb8d40.zip |
Merge pull request #9233 from rahul100885/master
Added notice message for destroy method in scaffold
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/scaffold_controller_generator_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/generators/scaffold_controller_generator_test.rb b/railties/test/generators/scaffold_controller_generator_test.rb index c34ce285e3..013cb78252 100644 --- a/railties/test/generators/scaffold_controller_generator_test.rb +++ b/railties/test/generators/scaffold_controller_generator_test.rb @@ -39,6 +39,7 @@ class ScaffoldControllerGeneratorTest < Rails::Generators::TestCase assert_instance_method :destroy, content do |m| assert_match(/@user\.destroy/, m) + assert_match(/User was successfully destroyed/, m) end assert_instance_method :set_user, content do |m| |