Sha256: 5c08c7f14ed3fd3a340ce398c5435af02fc994450262aee30adc703d9b50b65d
Contents?: true
Size: 1.03 KB
Versions: 6
Compression:
Stored size: 1.03 KB
Contents
require "spec/spec_helper" module RR module Expectations describe TimesCalledExpectation, ' with AnyTimesMatcher' do it_should_behave_like "RR::Expectations::TimesCalledExpectation" attr_reader :at_least before do @at_least = TimesCalledMatchers::AnyTimesMatcher.new @expectation = TimesCalledExpectation.new(double, at_least) end describe "#verify!" do it "always passes" do expectation.verify! 10.times {expectation.attempt!} expectation.verify! end end describe "#attempt?" do it "always returns true" do expectation.should be_attempt 10.times {expectation.attempt!} expectation.should be_attempt end end describe "#attempt!" do it "always passes" do 10.times {expectation.attempt!} end end describe "#terminal?" do it "returns false" do expectation.should_not be_terminal end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems