module Pollett::Testing::RequestHelper::ClassMethods

Public Instance Methods

it_requires_authentication(method, path) click to toggle source
# 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