Created
June 19, 2012 02:25
-
-
Save mikeebert/2951966 to your computer and use it in GitHub Desktop.
sinatra cucumber env.rb file configuration
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
#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