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
require 'rubygems' | |
require 'rspec' | |
def includes arg1, arg2 | |
arg1 = arg1.split if arg1.is_a? String | |
arg2 = arg2.split if arg2.is_a? String | |
not (arg1 & arg2).empty? | |
end | |
def includes_only arg1, arg2 |