api_helpers_warden.rb Ыct*V ��ct*V # Provide access to the Warden::Proxy in the Rack env by including this module in your Grape::API: # # helpers Api::Helpers::Warden # # These methods require that something has configured the Warden::Manager, and # the upstream middleware is in place to make the Warden::Proxy exist in the # env! In a Rails app, this is typically done by Devise or rails_warden. #
今回はインテグレーションテストにはCucumberを使わずRequestSpecを使ってみよーぜーということになった。Deviseでのユーザーをログインさせる方法を考えていたのだが、普通にログイン画面を開いてメアドとパスワードを打たせてログインしてから、さてさて…とやるのは時間がかかるだろうから、いい方法を調べよう!ということになったので、メモ。 参考にしたサイトは以下の通り。 Devise認証なコントローラーをRSpecでテストする : さかなチキンぱん。 rspec & devise test helpers Integration tests with Devise and RSpec spec_helpers.rbに RSpec.configure do |config| # Devise config.include Devise::TestHelpers, :type => :
For the new version of Connect.Me (in development), the interface is mostly driven through AJAX interactions. In the past, I’ve used Cucumber + Capybara to test JavaScript, but I really don’t like the Cucumber syntax and slow tests. I recently switched to RSpec request specs with Capybara. The only problem is testing testing JS on pages that require a login. Since Capybara runs in a different thre
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く