Skip to content

Instantly share code, notes, and snippets.

@mikeebert
Created June 19, 2012 02:25
Show Gist options
  • Save mikeebert/2951966 to your computer and use it in GitHub Desktop.
Save mikeebert/2951966 to your computer and use it in GitHub Desktop.
sinatra cucumber env.rb file configuration
#where foundry below is the name of your main app file
require File.join(File.expand_path(File.dirname(__FILE__)),'../../foundry')
require "Capybara"
require "Capybara/cucumber"
require "rspec"
World do
Capybara.app = Foundry #where Foundry is the class in your main app file
include Capybara::DSL
include RSpec::Matchers
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment