This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def bar | |
"baz" | |
end | |
end | |
if __FILE__ == $0 | |
require 'rubygems' | |
require 'spec' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Spec | |
module Matchers | |
class IncludeAll | |
attr_reader :expected_elements, :actual_elements, :extra_elements_in_actual, :extra_elements_in_expected | |
def initialize(expected_elements) | |
@expected_elements = expected_elements | |
end | |
def matches?(actual_elements) | |
@actual_elements = actual_elements |
NewerOlder