Skip to content

Instantly share code, notes, and snippets.

@brandonpittman
Created May 18, 2014 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonpittman/0f7ee81223e2b473c322 to your computer and use it in GitHub Desktop.
Save brandonpittman/0f7ee81223e2b473c322 to your computer and use it in GitHub Desktop.
middleman spec helper
require "middleman"
require 'rspec'
require 'capybara/rspec'
Capybara.app = Middleman::Application.server.inst do
set :root, File.expand_path(File.join(File.dirname(__FILE__), '..'))
set :environment, :development
set :show_exceptions, false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment