Created
February 13, 2013 22:10
-
-
Save anonymous/4948827 to your computer and use it in GitHub Desktop.
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
require 'rspec' | |
require 'capybara/rspec' | |
require 'capybara-webkit' | |
require 'headless' | |
Headless.new.start | |
Capybara.default_driver = :webkit | |
feature do | |
it do | |
visit 'http://fortawesome.github.com/Font-Awesome/' | |
page.save_screenshot 'screenshot.png' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably need to add the domain to capybara-webkit's whitelist. Before line 11, add the following:
This would also work:
As would: