Sha256: 4a7ea27606e05acf2de33f5804f6a11f47f75bd299a7f25085fa214f6e98b5b5
Contents?: true
Size: 620 Bytes
Versions: 3
Compression:
Stored size: 620 Bytes
Contents
require "spec/spec_helper" module RR module Expectations describe TimesCalledExpectation, :shared => true do attr_reader :space, :object, :method_name, :double_insertion, :scenario, :expectation before do @space = Space.new @object = Object.new @method_name = :foobar @double_insertion = space.double_insertion(object, method_name) @scenario = space.scenario(double_insertion) scenario.with_any_args end def raises_expectation_error(&block) proc {block.call}.should raise_error(Errors::TimesCalledError) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems