Skip to content

Instantly share code, notes, and snippets.

@nofxx
Created June 10, 2009 04:20
Show Gist options
  • Save nofxx/127017 to your computer and use it in GitHub Desktop.
Save nofxx/127017 to your computer and use it in GitHub Desktop.
# Ramaze Cucumber
require 'ramaze'
require 'webrat'
require 'ramaze/spec/bacon'
require File.join(File.dirname(__FILE__), *%w[.. .. start.rb])
def app; Ramaze.middleware; end
Ramaze.setup_dependencies
Webrat.configure do |config|
config.mode = :rack_test
end
World do
extend Rack::Test::Methods
extend Webrat::Methods
extend Webrat::Matchers
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment