Class: Spec::Runner::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hornsby/rspec_extensions.rb

Instance Method Summary collapse

Instance Method Details

#enable_hornsby(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/hornsby/rspec_extensions.rb', line 4

def enable_hornsby(options = {})
  Hornsby.load(options)

  include(Hornsby::Helper)
  before do
    Hornsby.setup(self)
  end
  after do
    Hornsby.teardown
  end
end