Skip to content

Commit 8529582

Browse files
committed
lint
1 parent 1d6c6ec commit 8529582

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/policies/nil_class_policy.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ class NilClassPolicy < ApplicationPolicy
22
def method_missing(*)
33
false
44
end
5+
6+
def respond_to_missing?(*)
7+
true
8+
end
59
end

lib/tasks/check_controller_tests.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace :test do
22
desc "Check for controller tests in spec/controllers and fail if any are found"
33
task check_controller_tests: :environment do
4-
controller_tests = Dir.glob('spec/controllers/**/*_spec.rb')
4+
controller_tests = Dir.glob("spec/controllers/**/*_spec.rb")
55
if controller_tests.any?
66
puts "controller tests should be in spec/requests"
77
exit 1

0 commit comments

Comments
 (0)