Last active
January 17, 2018 17:01
-
-
Save tochman/9d31caf23e6692e469f4367d4b712f45 to your computer and use it in GitHub Desktop.
Rspec settings for use with Middleman (acceptance tests)
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 'middleman-core' | |
require 'middleman-core/rack' | |
require 'middleman-livereload' | |
require 'middleman-deploy' | |
require 'middleman-sprockets' | |
middleman_app = ::Middleman::Application.new | |
Capybara.app = ::Middleman::Rack.new(middleman_app).to_app 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
Make sure to have the relevant gems added to your Gemfile