Sha256: 319dcb14b26c2e804a6fe323ce25d709d6fb123aeab49f61aefc0c506ca4f3f0
Contents?: true
Size: 1.45 KB
Versions: 15
Compression:
Stored size: 1.45 KB
Contents
require "examples/example_helper" module RR module Expectations describe TimesCalledExpectation, ' with AnyTimesMatcher', :shared => true do it_should_behave_like "RR::Expectations::TimesCalledExpectation" before do @at_least = TimesCalledMatchers::AnyTimesMatcher.new @expectation = TimesCalledExpectation.new(@at_least) end end describe TimesCalledExpectation, "#verify! with AnyTimesMatcher" do it_should_behave_like "RR::Expectations::TimesCalledExpectation with AnyTimesMatcher" it "always passes" do @expectation.verify! 10.times {@expectation.attempt!} @expectation.verify! end end describe TimesCalledExpectation, "#attempt? with AnyTimesMatcher" do it_should_behave_like "RR::Expectations::TimesCalledExpectation with AnyTimesMatcher" it "always returns true" do @expectation.should be_attempt 10.times {@expectation.attempt!} @expectation.should be_attempt end end describe TimesCalledExpectation, "#attempt! with AnyTimesMatcher" do it_should_behave_like "RR::Expectations::TimesCalledExpectation with AnyTimesMatcher" it "always passes" do 10.times {@expectation.attempt!} end end describe TimesCalledExpectation, "#terminal? with AnyTimesMatcher" do it_should_behave_like "RR::Expectations::TimesCalledExpectation with AnyTimesMatcher" it "returns false" do @expectation.should_not be_terminal end end end end
Version data entries
15 entries across 15 versions & 1 rubygems