Sha256: f0743d1c9958540a1b163fcdca733e79265eca82b62993e0ad5f4280760f6150

Contents?: true

Size: 248 Bytes

Versions: 6

Compression:

Stored size: 248 Bytes

Contents

require 'spec_helper'
require 'parameters/types/regexp'

describe Parameters::Types::Regexp do
  subject { described_class }

  describe "coerce" do
    it "should parse Strings" do
      subject.coerce('[a-z]').should == /[a-z]/
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
parameters-0.4.4 spec/types/regexp_spec.rb
parameters-0.4.3 spec/types/regexp_spec.rb
parameters-0.4.2 spec/types/regexp_spec.rb
parameters-0.4.0 spec/types/regexp_spec.rb
parameters-0.3.1 spec/types/regexp_spec.rb
parameters-0.3.0 spec/types/regexp_spec.rb