Parent

Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Cover

Public Class Methods

new(*expected) click to toggle source
# File lib/rspec/matchers/built_in/cover.rb, line 7
def initialize(*expected)
  super(expected)
end

Public Instance Methods

does_not_match?(range) click to toggle source
# File lib/rspec/matchers/built_in/cover.rb, line 15
def does_not_match?(range)
  @actual = range
  expected.none? {|e| range.cover?(e)}
end
matches?(range) click to toggle source
# File lib/rspec/matchers/built_in/cover.rb, line 11
def matches?(range)
  expected.all? {|e| super(range).cover?(e)}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.