Module: RSpec::Core::SharedContext
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/shared_context.rb
Overview
Exposes ExampleGroup-level methods to a module, so you can include that module in an ExampleGroup.
Defined Under Namespace
Classes: Recording
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.record(methods) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/shared_context.rb', line 40 def self.record(methods) methods.each do |meth| define_method(meth) do |*args, &block| __shared_context_recordings << Recording.new(meth, args, block) end end end |
Instance Method Details
#__shared_context_recordings ⇒ Object
28 29 30 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/shared_context.rb', line 28 def __shared_context_recordings @__shared_context_recordings ||= [] end |