Sha256: 5db2393faa2d086ce0cf3e5e9eda44a55284ac7a488d5d33c6dedfd4f7ec8f19

Contents?: true

Size: 412 Bytes

Versions: 169

Compression:

Stored size: 412 Bytes

Contents

module RSpec
  module Matchers
    module BuiltIn
      class Cover
        include BaseMatcher

        def initialize(*expected)
          super(expected)
        end

        def matches?(range)
          expected.all? {|e| super(range).cover?(e)}
        end

        def does_not_match?(range)
          @actual = range
          expected.none? {|e| range.cover?(e)}
        end
      end
    end
  end
end

Version data entries

169 entries across 71 versions & 9 rubygems

Version Path
classiccms-0.4.1 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/cover.rb
classiccms-0.4.1 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
classiccms-0.4.1 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/cover.rb
classiccms-0.4.0 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/cover.rb
classiccms-0.4.0 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/cover.rb
classiccms-0.4.0 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
classiccms-0.3.9 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/cover.rb
classiccms-0.3.9 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/cover.rb
classiccms-0.3.9 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/cover.rb
classiccms-0.3.8 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/cover.rb
classiccms-0.3.8 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/cover.rb