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

Version Path
mspec-1.9.1 spec/runner/filters/regexp_spec.rb
mspec-1.9.0 spec/runner/filters/regexp_spec.rb
mspec-1.8.0 spec/runner/filters/regexp_spec.rb
mspec-1.7.0 spec/runner/filters/regexp_spec.rb
mspec-1.6.0 spec/runner/filters/regexp_spec.rb
mspec-1.5.21 spec/runner/filters/regexp_spec.rb
mspec-1.5.20 spec/runner/filters/regexp_spec.rb
mspec-1.5.19 spec/runner/filters/regexp_spec.rb
mspec-1.5.18 spec/runner/filters/regexp_spec.rb
mspec-1.5.17 spec/runner/filters/regexp_spec.rb
mspec-1.5.16 spec/runner/filters/regexp_spec.rb
mspec-1.5.15 spec/runner/filters/regexp_spec.rb
mspec-1.5.14 spec/runner/filters/regexp_spec.rb
mspec-1.5.13 spec/runner/filters/regexp_spec.rb
mspec-1.0.0 spec/runner/filters/regexp_spec.rb
mspec-1.2.0 spec/runner/filters/regexp_spec.rb
mspec-1.3.0 spec/runner/filters/regexp_spec.rb
mspec-1.5.0 spec/runner/filters/regexp_spec.rb
mspec-1.5.10 spec/runner/filters/regexp_spec.rb
mspec-1.5.11 spec/runner/filters/regexp_spec.rb