Created
November 9, 2010 13:33
-
-
Save zenom/669072 to your computer and use it in GitHub Desktop.
spec_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scenario "have ability to edit profile", :js => true do | |
@ability.should be_able_to(:edit, @profile) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |config| | |
config.include Capybara | |
config.before(:each) do | |
Capybara.current_driver = :akephalos if example.metadata[:js] | |
end | |
config.after(:each) do | |
Capybara.use_default_driver if example.metadata[:js] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment