Skip to content

Instantly share code, notes, and snippets.

@christophervigliotti
Created April 20, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophervigliotti/345a969eb92d0fb77aef1fb66d2db1d4 to your computer and use it in GitHub Desktop.
Save christophervigliotti/345a969eb92d0fb77aef1fb66d2db1d4 to your computer and use it in GitHub Desktop.
You down with AFT?
require 'spec_helper'
RSpec.feature 'TODO: describe your spec here' do
before(:each) do
@wait_time = Capybara.default_max_wait_time
Capybara.default_max_wait_time = 10
end
scenario 'TODO: describe your scenario here.', :js do
# TODO: your logic goes here
end
# TODO: add more scenarios here as-needed
after(:each) do
Capybara.default_max_wait_time = @wait_time
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment