Method: Synthesis::Expectation::Expectation#explode
- Defined in:
- lib/synthesis/expectation.rb
#explode ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/synthesis/expectation.rb', line 31 def explode if @return_values.size > 1 @return_values.map do |v| expectation = self.class.new(@receiver, @method, @track, @args, []) expectation.add_test_subject(@callers.shift) expectation.add_return_values(v) expectation end else self end end |