We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6c6ec commit 8529582Copy full SHA for 8529582
app/policies/nil_class_policy.rb
@@ -2,4 +2,8 @@ class NilClassPolicy < ApplicationPolicy
2
def method_missing(*)
3
false
4
end
5
+
6
+ def respond_to_missing?(*)
7
+ true
8
+ end
9
lib/tasks/check_controller_tests.rake
@@ -1,7 +1,7 @@
1
namespace :test do
desc "Check for controller tests in spec/controllers and fail if any are found"
task check_controller_tests: :environment do
- controller_tests = Dir.glob('spec/controllers/**/*_spec.rb')
+ controller_tests = Dir.glob("spec/controllers/**/*_spec.rb")
if controller_tests.any?
puts "controller tests should be in spec/requests"
exit 1
0 commit comments