Created
February 3, 2011 20:24
-
-
Save biot023/810123 to your computer and use it in GitHub Desktop.
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
# Generated by cucumber-sinatra. (2011-02-01 22:03:41 +0000) | |
ENV['RACK_ENV'] = 'test' | |
require File.join(File.dirname(__FILE__), '..', '..', 'lib/my_app.rb') | |
require 'capybara' | |
require 'capybara/cucumber' | |
require 'rspec' | |
require "rack/test" | |
Capybara.app = MyApp | |
class MyAppWorld | |
def app; MyApp; end # <-- put in as a hack to get rid of no 'app' method or variable error | |
include Capybara | |
include RSpec::Expectations | |
include RSpec::Matchers | |
include Rack::Test::Methods | |
end | |
World do | |
MyAppWorld.new | |
end |
Indeed it should -- just corrected it, thankyou. :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should that last part be: