Class: LetterStampMailDelivery::RSpecSupport::ExampleLocationNotifier

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/letter_stamp_mail_delivery/rspec_support.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ExampleLocationNotifier

Returns a new instance of ExampleLocationNotifier.



6
7
8
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 6

def initialize(*args)
  # nothing
end

Instance Method Details

#closeObject



10
11
12
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 10

def close
  # nothing
end

#example_failed(example) ⇒ Object



38
39
40
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 38

def example_failed(example)
  example_finished
end

#example_group_finished(example_group) ⇒ Object



22
23
24
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 22

def example_group_finished(example_group)
  # nothing
end

#example_group_started(example_group) ⇒ Object



18
19
20
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 18

def example_group_started(example_group)
  # nothing
end

#example_passed(example) ⇒ Object



30
31
32
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 30

def example_passed(example)
  example_finished
end

#example_pending(example) ⇒ Object



34
35
36
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 34

def example_pending(example)
  example_finished
end

#example_started(example) ⇒ Object



26
27
28
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 26

def example_started(example)
  ::LetterStampMailDelivery::DeliveryMethod.posting_location = posting_location(example)
end

#start(example_count) ⇒ Object



14
15
16
# File 'lib/letter_stamp_mail_delivery/rspec_support.rb', line 14

def start(example_count)
  ::LetterStampMailDelivery::DeliveryMethod.start
end