Created
May 8, 2011 21:57
-
-
Save roykolak/961721 to your computer and use it in GitHub Desktop.
An example of using switch_driver in a capybara spec
This file contains hidden or 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
require File.dirname(__FILE__) + '/../acceptance_helper' | |
feature "Logging in on mobile site", %q{ | |
In order to access my site on the go, | |
As a user, | |
I want to log into my site | |
} do | |
switch_driver :mobile | |
scenario "Successfully logging in" do | |
# Your great spec here. | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment