Put the code in the wrong block.

bug/bundler_fix
James Barnett 2016-02-25 13:39:04 -06:00
parent 2366a7baa8
commit 17447bea35
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 4 additions and 4 deletions

View File

@ -25,10 +25,10 @@ unless Bundler.settings.without.include?(:coverage)
simplecov_setup_pathname = Pathname.new(__FILE__).expand_path.parent.join('simplecov_setup')
# set environment variable so child processes will merge their coverage data with parent process's coverage data.
set_env('RUBYOPT', "#{ENV['RUBYOPT']} -r#{simplecov_setup_pathname}")
end
Before('@db') do |scenario|
dbconfig = YAML::load(File.open(Metasploit::Framework::Database.configurations_pathname))
ActiveRecord::Base.establish_connection(dbconfig["test"])
end
Before('@db') do |scenario|
dbconfig = YAML::load(File.open(Metasploit::Framework::Database.configurations_pathname))
ActiveRecord::Base.establish_connection(dbconfig["test"])
end
end