aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/resources_test.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-09-16 16:34:36 -0300
committerGitHub <noreply@github.com>2016-09-16 16:34:36 -0300
commit84650022d574d24d6adea6ad941ec3ca57d2a2f0 (patch)
tree07318ea156bb21b19042fe2bebc7a713ab0a02e7 /actionpack/test/controller/resources_test.rb
parentc5c1a29be7d435fe569c9e15c22db65768b50318 (diff)
parenta9aed2ac94d2e0d1a233a3c193985ae78d7e79e9 (diff)
downloadrails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.tar.gz
rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.tar.bz2
rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.zip
Merge pull request #26516 from grosser/grosser/assert
improve error message when include assertions fail
Diffstat (limited to 'actionpack/test/controller/resources_test.rb')
-rw-r--r--actionpack/test/controller/resources_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb
index 29471939d0..b572e7e8d5 100644
--- a/actionpack/test/controller/resources_test.rb
+++ b/actionpack/test/controller/resources_test.rb
@@ -1313,7 +1313,7 @@ class ResourcesTest < ActionController::TestCase
def assert_resource_methods(expected, resource, action_method, method)
assert_equal expected.length, resource.send("#{action_method}_methods")[method].size, "#{resource.send("#{action_method}_methods")[method].inspect}"
expected.each do |action|
- assert resource.send("#{action_method}_methods")[method].include?(action),
+ assert_includes resource.send("#{action_method}_methods")[method], action,
"#{method} not in #{action_method} methods: #{resource.send("#{action_method}_methods")[method].inspect}"
end
end