Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 486 Bytes
# Sets up the Rails environment for Cucumber
ENV["RAILS_ENV"] ||= "cucumber"
$: << File.expand_path(File.dirname(__FILE__) + "/../../vendor/plugins/steam/lib")
require 'steam'
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
browser = Steam::Browser::HtmlUnit.new
World do
Steam::Session::Rails.new(browser)
end
Before do
ActiveRecord::Base.send(:subclasses).each do |model|
model.connection.execute("DELETE FROM #{model.table_name}")
end
end
Jump to Line
Something went wrong with that request. Please try again.