Module: IntegrationTestsRails::Istanbul::Util

Defined in:
lib/integration_tests_rails/istanbul/util.rb

Overview

Utilities for Istanbul setup and configuration are found here.

Class Method Summary collapse

Class Method Details

.configure_rspecObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/integration_tests_rails/istanbul/util.rb', line 8

def configure_rspec
  RSpec.configure do |config|
    config.before(:suite) do
      Collector.setup
    end

    config.after(:each, type: :feature) do
      Collector.collect(page)
    end
  end
end

.log(message) ⇒ Object



20
21
22
23
24
# File 'lib/integration_tests_rails/istanbul/util.rb', line 20

def log(message)
  return unless verbose?

  puts "[ISTANBUL] #{message}"
end