require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'vendor', 'gems', 'environment')) require File.join(File.dirname(__FILE__), '..', '..', 'lib', '<%= name %>') require 'spec' require 'webrat' require 'rack/test' require 'fakeweb' Webrat.configure do |config| config.mode = :rack config.application_port = 4567 end module <%= name.camelize %>::AppHelpers begin gem 'safariwatir', '~>0.3.3' require 'safariwatir' def browser @browser ||= Watir::Safari.new end rescue LoadError => e end def app_host 'http://localhost:9393/migration' end def app <%= name.camelize %>.app end end World(Rack::Test::Methods) World(Webrat::Matchers) World(<%= name.camelize %>::AppHelpers) Before do # insert before filtery things here end