Class: Cucumber::Events::TestCaseCreated

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

Overview

Event fired when a Test::Case is 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.



13
14
15
16
17
# File 'lib/cucumber/events/test_case_created.rb', line 13

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

Instance Attribute Details

#pickleObject (readonly)

Returns the value of attribute pickle.



7
8
9
# File 'lib/cucumber/events/test_case_created.rb', line 7

def pickle
  @pickle
end

#test_caseObject (readonly)

Returns the value of attribute test_case.



7
8
9
# File 'lib/cucumber/events/test_case_created.rb', line 7

def test_case
  @test_case
end

Class Method Details

.event_idObject



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

def self.event_id
  :test_case_created
end