Class: Cucumber::Core::Events::TestCaseCreated

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/core/events/test_case_created.rb

Overview

Signals that a Test::Case was created from a Pickle

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#event_id, #to_h

Constructor Details

#initialize(test_case, pickle) ⇒ TestCaseCreated

Returns a new instance of TestCaseCreated.



16
17
18
19
20
# File 'lib/cucumber/core/events/test_case_created.rb', line 16

def initialize(test_case, pickle)
  @test_case = test_case
  @pickle = pickle
  super()
end

Instance Attribute Details

#pickleObject (readonly)

Returns the value of attribute pickle.



10
11
12
# File 'lib/cucumber/core/events/test_case_created.rb', line 10

def pickle
  @pickle
end

#test_caseObject (readonly)

Returns the value of attribute test_case.



10
11
12
# File 'lib/cucumber/core/events/test_case_created.rb', line 10

def test_case
  @test_case
end

Class Method Details

.event_idObject



12
13
14
# File 'lib/cucumber/core/events/test_case_created.rb', line 12

def self.event_id
  :test_case_created
end