Basic Auth
Closed this issue · 3 comments
betahikaru commented
We needs any authorization way.
First, we provides basic auth by rack (Rack::Auth::Basic).
betahikaru commented
betahikaru commented
参考
- rspecでBasic認証のテストをするには、これを使う?
it "return 200 OK" do
get uri
expect(last_response).to be_ok
end
it "return 200 OK" do
basic_authorize(ENV['BASIC_AUTH_USERNAME'], ENV['BASIC_AUTH_PASSWORD'])
get uri
expect(last_response).to be_ok
end
betahikaru commented