エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Testing HTTP basic authentication with RSpec 2 – Tristan Media Blog
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Testing HTTP basic authentication with RSpec 2 – Tristan Media Blog
Here's how I test my admin controllers that use HTTP basic authentication using RSpec 2: before(:... Here's how I test my admin controllers that use HTTP basic authentication using RSpec 2: before(:each) do user = 'test' pw = 'test_pw' request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw) end Actually, that's how I did it when I first tested things, but I've since put it in its own module under spec/support/auth_helper: module AuthHelper # do