Sha256: 52634bfc8cb65964416563525333ecaafe25b18c872bb9c5dfd33077dba96b39
Contents?: true
Size: 371 Bytes
Versions: 34
Compression:
Stored size: 371 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' require 'mspec/runner/mspec' require 'mspec/runner/filters/regexp' describe RegexpFilter, "#to_regexp" do before :each do @filter = RegexpFilter.new nil end it "converts its arguments to Regexp instances" do @filter.to_regexp('a(b|c)', 'b[^ab]', 'cc?').should == [/a(b|c)/, /b[^ab]/, /cc?/] end end
Version data entries
34 entries across 34 versions & 1 rubygems