Module: Pollett::Testing::RequestHelper::ClassMethods
- Defined in:
- lib/pollett/testing/request_helper.rb
Instance Method Summary collapse
Instance Method Details
#it_requires_authentication(method, path) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/pollett/testing/request_helper.rb', line 5 def it_requires_authentication(method, path) it "requires authentication" do begin json_request(method, path) expect_status(401) rescue Pollett::Unauthorized end end end |