Class: RSpactor::Spork

Inherits:
Object
  • Object
show all
Defined in:
lib/rspactor/spork.rb

Constant Summary collapse

RSPEC_PORT =
8989
CUCUMBER_PORT =
8990

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(runner) ⇒ Spork

Returns a new instance of Spork.



11
12
13
# File 'lib/rspactor/spork.rb', line 11

def initialize(runner)
  @use_cucumber = runner.cucumber?
end

Instance Attribute Details

#use_cucumberObject

Returns the value of attribute use_cucumber.



9
10
11
# File 'lib/rspactor/spork.rb', line 9

def use_cucumber
  @use_cucumber
end

Instance Method Details

#reloadObject



19
20
21
# File 'lib/rspactor/spork.rb', line 19

def reload
  execute(:reload)
end

#startObject



15
16
17
# File 'lib/rspactor/spork.rb', line 15

def start
  execute(:start)
end