Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 373 Bytes
# Include hook code here
unless ARGV.grep(/^CUCUMBER_SLICER=(.+)/).blank?
if RAILS_ENV == 'test'
require 'cucumber_slicer'
feature = $1
# prepare db connection
ActiveRecord::Base.configurations['test']['adapter'] = "sqlite3"
ActiveRecord::Base.configurations['test']['database'] = Cucumber::Rake::Slicer.test_db_path(File.basename(feature))
end
end
Jump to Line
Something went wrong with that request. Please try again.