Skip to content

Instantly share code, notes, and snippets.

@roykolak
Created May 8, 2011 21:57
Show Gist options
  • Save roykolak/961721 to your computer and use it in GitHub Desktop.
Save roykolak/961721 to your computer and use it in GitHub Desktop.
An example of using switch_driver in a capybara spec
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