Module: RSpecAdapter

Included in:
Quarantine
Defined in:
lib/quarantine/rspec_adapter.rb

Instance Method Summary collapse

Instance Method Details

#bind(options = {}) ⇒ Object

Purpose: create an instance of Quarantine which contains information

about the test suite (ie. quarantined tests) and binds RSpec configurations
and hooks onto the global RSpec class


5
6
7
8
9
10
11
12
# File 'lib/quarantine/rspec_adapter.rb', line 5

def bind(options = {})
  quarantine = Quarantine.new(options)
  bind_rspec_configurations
  bind_quarantine_list(quarantine)
  bind_quarantine_checker(quarantine)
  bind_quarantine_record_tests(quarantine)
  bind_logger(quarantine)
end