Sha256: ce8f1c655bc5436d443257eeb20abc18fa83b89016877f9c5aa3a191311d1bdc

Contents?: true

Size: 238 Bytes

Versions: 6

Compression:

Stored size: 238 Bytes

Contents

require 'spec_helper'
require 'parameters/types/symbol'

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

  describe "coerce" do
    it "should call #to_sym" do
      subject.coerce('a').should == :a
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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