Class: Dressing::Runner::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dressing/runner/base.rb

Direct Known Subclasses

RSpec

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/dressing/runner/base.rb', line 12

def initialize(test)
  @test = test
end

Instance Attribute Details

#testObject (readonly)

Returns the value of attribute test.



6
7
8
# File 'lib/dressing/runner/base.rb', line 6

def test
  @test
end

Class Method Details

.run(*args) ⇒ Object



8
9
10
# File 'lib/dressing/runner/base.rb', line 8

def self.run(*args)
  new(*args).run
end

Instance Method Details

#passed?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/dressing/runner/base.rb', line 27

def passed?
  raise NotImplementedError
end

#runObject



16
17
18
19
20
21
# File 'lib/dressing/runner/base.rb', line 16

def run
  Dressing.using_driver driver do
    run_test
    update_status
  end
end

#run_testObject

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/dressing/runner/base.rb', line 23

def run_test
  raise NotImplementedError
end