Sha256: 0aac824fc6fcc42a932777a7fd76e42cd54c47c13cc15d0ca45d32d94496bb7f

Contents?: true

Size: 540 Bytes

Versions: 12

Compression:

Stored size: 540 Bytes

Contents

module Fakes
  module RSpec
    class Occurances
      class << self
        def from_block(the_block)
          return BlockCriteria.new(the_block)
        end
        def exact(times)
          return from_block(lambda{|occurances| return occurances == times})
        end
        def at_least(times)
          return from_block(lambda { |occurences| return occurences >= times})
        end
        def at_most(times)
          return from_block(lambda { |occurences| return occurences <= times})
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fakes-rspec-1.0.4 lib/fakes_rspec/occurances.rb
fakes-rspec-1.0.2 lib/core/occurances.rb
fakes-rspec-1.0.0 lib/core/occurances.rb
fakes-rspec-0.4.1 lib/core/occurances.rb
fakes-rspec-0.4.0 lib/core/occurances.rb
fakes-rspec-0.3.8 lib/core/occurances.rb
fakes-rspec-0.3.2 lib/core/occurances.rb
fakes-rspec-0.3.1 lib/core/occurances.rb
fakes-rspec-0.1.3 lib/core/occurances.rb
fakes-rspec-0.1.2 lib/core/occurances.rb
fakes-rspec-0.1.1 lib/core/occurances.rb
fakes-rspec-0.1.0 lib/core/occurances.rb