aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorclaudiob <claudiob@users.noreply.github.com>2017-12-02 12:00:09 -0800
committerclaudiob <claudiob@users.noreply.github.com>2017-12-02 12:00:09 -0800
commita71bbed76aab9e8a9a6b2da18bcacd8ee32a0dd0 (patch)
tree96a04253ce849c37b36f5ee72f17b7e2925d7043 /railties/test
parent6a7787218b8d75913b58d7bed198495e8d29e34e (diff)
downloadrails-a71bbed76aab9e8a9a6b2da18bcacd8ee32a0dd0.tar.gz
rails-a71bbed76aab9e8a9a6b2da18bcacd8ee32a0dd0.tar.bz2
rails-a71bbed76aab9e8a9a6b2da18bcacd8ee32a0dd0.zip
Fix typo in test error message
With the current code, a failing test shows this error, which is missing the number of times called and has two periods at the end. ``` /railties$ be ruby -Itest test/generators/app_generator_test.rb -n test_active_storage_install Failure: AppGeneratorTest#test_active_storage_install [test/generators/app_generator_test.rb:313]: active_storage:install expected to be called once, but was called times.. Expected: 1 Actual: 2 ``` After the fix, the error message looks correct: ``` /railties$ be ruby -Itest test/generators/app_generator_test.rb -n test_active_storage_install Failure: AppGeneratorTest#test_active_storage_install [test/generators/app_generator_test.rb:313]: active_storage:install expected to be called once, but was called 2 times. Expected: 1 Actual: 2 ```
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/app_generator_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 774fd0f315..8d12f4e5a7 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -310,7 +310,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
case command
when "active_storage:install"
@binstub_called += 1
- assert_equal 1, @binstub_called, "active_storage:install expected to be called once, but was called #{@install_called} times."
+ assert_equal 1, @binstub_called, "active_storage:install expected to be called once, but was called #{@binstub_called} times"
end
end