Module: RSpec::Specify::InstanceMethods
- Defined in:
- lib/specify/rspec/documentation_formatter.rb
Instance Method Summary collapse
- #example_passed_with_steps(notification) ⇒ Object
- #example_started(notification) ⇒ Object
- #example_started_with_steps(notification) ⇒ Object
- #example_step_failed(notification) ⇒ Object
- #example_step_passed(notification) ⇒ Object
- #example_step_pending(notification) ⇒ Object
Instance Method Details
#example_passed_with_steps(notification) ⇒ Object
52 53 54 |
# File 'lib/specify/rspec/documentation_formatter.rb', line 52 def example_passed_with_steps(notification) example_passed_without_steps(notification) unless notification.example.[:with_steps] end |
#example_started(notification) ⇒ Object
18 19 |
# File 'lib/specify/rspec/documentation_formatter.rb', line 18 def example_started(notification) end |
#example_started_with_steps(notification) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/specify/rspec/documentation_formatter.rb', line 43 def example_started_with_steps(notification) example_started_without_steps(notification) if notification.example.[:with_steps] = "#{current_indentation}#{notification.example.description}" output.puts Core::Formatters::ConsoleCodes.wrap(, :default) end end |
#example_step_failed(notification) ⇒ Object
26 27 28 29 |
# File 'lib/specify/rspec/documentation_formatter.rb', line 26 def example_step_failed(notification) = "#{current_indentation} #{notification.type.to_s.capitalize} #{notification.} (FAILED)" output.puts Core::Formatters::ConsoleCodes.wrap(, :failure) end |
#example_step_passed(notification) ⇒ Object
21 22 23 24 |
# File 'lib/specify/rspec/documentation_formatter.rb', line 21 def example_step_passed(notification) = "#{current_indentation} #{notification.type.to_s.capitalize} #{notification.}" output.puts Core::Formatters::ConsoleCodes.wrap(, :success) end |
#example_step_pending(notification) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/specify/rspec/documentation_formatter.rb', line 31 def example_step_pending(notification) = "#{current_indentation} #{notification.type.to_s.capitalize} #{notification.}" if notification.[:pending] && notification.[:pending] != true << " (PENDING: #{notification.[:pending]})" else << ' (PENDING)' end output.puts Core::Formatters::ConsoleCodes.wrap(, :pending) end |