Module: RSpec::Core::Warnings
- Included in:
- RSpec
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/warnings.rb
Instance Method Summary collapse
-
#deprecate(deprecated, data = {}) ⇒ Object
Used internally to print deprecation warnings.
-
#warn_deprecation(message, opts = {}) ⇒ Object
Used internally to print deprecation warnings.
- #warn_with(message, options = {}) ⇒ Object
Instance Method Details
#deprecate(deprecated, data = {}) ⇒ Object
Used internally to print deprecation warnings.
10 11 12 13 14 15 16 17 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/warnings.rb', line 10 def deprecate(deprecated, data={}) RSpec.configuration.reporter.deprecation( { :deprecated => deprecated, :call_site => CallerFilter.first_non_rspec_line }.merge(data) ) end |
#warn_deprecation(message, opts = {}) ⇒ Object
Used internally to print deprecation warnings.
22 23 24 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/warnings.rb', line 22 def warn_deprecation(, opts={}) RSpec.configuration.reporter.deprecation opts.merge(:message => ) end |
#warn_with(message, options = {}) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/warnings.rb', line 27 def warn_with(, ={}) if [:use_spec_location_as_call_site] += "." unless .end_with?(".") if RSpec.current_example += " Warning generated from spec at `#{RSpec.current_example.location}`." end end super(, ) end |