Bypass recaptcha for feature specs exercising the signup mechanism.

This commit is contained in:
Steven Miers 2015-01-05 21:29:23 -06:00
parent 8009e309ea
commit 9047e26aba
2 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,15 @@ describe "Signup", :js => true, :type => :feature, :capybara_feature => true do
subject { page }
before(:all) do
@old_recaptcha=Rails.application.config.recaptcha_enable
Rails.application.config.recaptcha_enable=false
end
after(:all) do
Rails.application.config.recaptcha_enable=@old_recaptcha
end
before(:each) do
@mac_client = FactoryGirl.create(:artifact_update)
UserMailer.deliveries.clear

View File

@ -10,8 +10,15 @@ describe "User Progression", :js => true, :type => :feature, :capybara_feature
Capybara.javascript_driver = :poltergeist
Capybara.current_driver = Capybara.javascript_driver
Capybara.default_wait_time = 10
@old_recaptcha=Rails.application.config.recaptcha_enable
Rails.application.config.recaptcha_enable=false
end
after(:all) do
Rails.application.config.recaptcha_enable=@old_recaptcha
end
let(:user) { FactoryGirl.create(:user) }
describe "downloaded client" do