Sha256: df7279df5abb290be06bdd392f13fa0acf4a4ebb536323fff44f2bec6afa07c0

Contents?: true

Size: 586 Bytes

Versions: 3

Compression:

Stored size: 586 Bytes

Contents

require File.expand_path('./test_helper', File.dirname(__FILE__))
require 'capybara'
require 'capybara/minitest'
def rails_setup
  ENV["RAILS_ENV"] = "test"
  require 'rails'
  #coverband must be required after rails
  load 'coverband/utils/railtie.rb'
  Coverband.configure("./test/rails#{Rails::VERSION::MAJOR}_dummy/config/coverband.rb")
  require_relative "../test/rails#{Rails::VERSION::MAJOR}_dummy/config/environment"
  require 'capybara/rails'
  #Our coverage report is wrapped in display:none as of now
  Capybara.ignore_hidden_elements = false
  require 'mocha/minitest'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coverband-4.2.0 test/rails_test_helper.rb
coverband-4.2.0.rc3 test/rails_test_helper.rb
coverband-4.2.0.rc2 test/rails_test_helper.rb