Skip to content

Instantly share code, notes, and snippets.

@campreb
Created July 26, 2013 01:21
Show Gist options
  • Save campreb/6085283 to your computer and use it in GitHub Desktop.
Save campreb/6085283 to your computer and use it in GitHub Desktop.
spec_helper.rb for running Capybara on a Middleman application
require 'rubygems'
require 'middleman/rack'
require 'rspec'
require 'capybara/rspec'
Capybara.save_and_open_page_path = File.join("tmp", "capybara")
Capybara.ignore_hidden_elements = false
Capybara.app = Middleman.server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment