Class: RSpec::Core::Notifications::SkippedExampleNotification
- Inherits:
-
ExampleNotification
- Object
- Struct
- ExampleNotification
- RSpec::Core::Notifications::SkippedExampleNotification
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb
Overview
The ‘SkippedExampleNotification` extends `ExampleNotification` with things useful for specs that are skipped.
Instance Attribute Summary collapse
-
#example ⇒ RSpec::Core::Example
the current example.
Instance Method Summary collapse
-
#fully_formatted(pending_number, colorizer = ::RSpec::Core::Formatters::ConsoleCodes) ⇒ String
The pending detail fully formatted in the way that RSpec’s built-in formatters emit.
Methods inherited from ExampleNotification
Methods inherited from Struct
Instance Attribute Details
#example ⇒ RSpec::Core::Example
the current example
228 229 230 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 228 def example @example end |
Instance Method Details
#fully_formatted(pending_number, colorizer = ::RSpec::Core::Formatters::ConsoleCodes) ⇒ String
Returns The pending detail fully formatted in the way that RSpec’s built-in formatters emit.
233 234 235 236 237 238 239 240 241 242 243 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 233 def fully_formatted(pending_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes) formatted_caller = RSpec.configuration.backtrace_formatter.backtrace_line(example.location) [ colorizer.wrap("\n #{pending_number}) #{example.full_description}", :pending), "\n ", Formatters::ExceptionPresenter::PENDING_DETAIL_FORMATTER.call(example, colorizer), "\n", colorizer.wrap(" # #{formatted_caller}\n", :detail) ].join("") end |