Module: Clearance::Testing::Matchers
- Defined in:
- lib/clearance/testing/deny_access_matcher.rb
Overview
Provides matchers to be used in your controller specs.
These are typically exposed to your controller specs by
requiring clearance/rspec
or clearance/test_unit
as
appropriate in your rails_helper.rb
or test_helper.rb
files.
Instance Method Summary collapse
-
#deny_access(opts = {}) ⇒ Object
The
deny_access
matcher is used to assert that a request is denied access by clearance.
Instance Method Details
#deny_access(opts = {}) ⇒ Object
The deny_access
matcher is used to assert that a
request is denied access by clearance.
33 34 35 |
# File 'lib/clearance/testing/deny_access_matcher.rb', line 33 def deny_access(opts = {}) DenyAccessMatcher.new(self, opts) end |