Module: RSpec::Method::ExampleGroup
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rspec/method.rb
Overview
Container module for method specs.
Instance Method Summary collapse
Instance Method Details
#subject ⇒ Object
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/rspec/method.rb', line 77 def subject receiver.method method_name rescue NameError => error raise unless (receiver.is_a? error.receiver rescue false) warn "Testing #{error}" -> *args { receiver.send method_name, *args } end |