Created
June 19, 2012 02:43
-
-
Save mikeebert/2952016 to your computer and use it in GitHub Desktop.
Sinatra Rspec spec_helper (also using cucumber)
This file contains hidden or 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 File.join(File.expand_path(File.dirname(__FILE__)), '/../', 'foundry') | |
| require 'sinatra' | |
| require 'rack/test' | |
| set :environment, :test | |
| #specify that the app is a Sinatra app | |
| def app | |
| Sinatra::Application | |
| end | |
| #make Rack::Text available to all spec contexts | |
| RSpec.configure do |config| | |
| config.include Rack::Test::Methods | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment