Module: Maxitest::ImplicitSubject
- Defined in:
- lib/maxitest/implicit_subject.rb
Instance Method Summary collapse
Instance Method Details
#describe(*args, &block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/maxitest/implicit_subject.rb', line 4 def describe(*args, &block) super(*args) do let(:subject) { args.first.new } if args.first.is_a?(Class) instance_exec(&block) end end |