module SmashTheState::Matchers

Public Instance Methods

supports_block_expectations?() click to toggle source

Magic: Calling this matcher with an operation works the way you'd expect. Calling it with a block turns the block into a proc and stuffs it into |operation|. Since operations and procs both respond to .call in the same way, `operation.call.as_json` does the same thing in both cases.

# File lib/smash_the_state/matchers.rb, line 25
def supports_block_expectations?
  true
end