Module: Saharspec::Its::Call
- Defined in:
- lib/saharspec/its/call.rb
Instance Method Summary collapse
-
#its_call(*options, &block) ⇒ Object
Creates nested example which converts current subject to a block-subject.
Instance Method Details
#its_call(*options, &block) ⇒ Object
Creates nested example which converts current subject to a block-subject.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/saharspec/its/call.rb', line 32 def its_call(*, &block) # rubocop:disable Lint/NestedMethodDefinition describe('call') do let(:__call_subject) do -> { subject } end def is_expected expect(__call_subject) end example(nil, *, &block) end # rubocop:enable Lint/NestedMethodDefinition end |