Sha256: e273cbe4f4abe9ab644b8c67ad0917078748cafed45dd09e5632d7551554f6d4

Contents?: true

Size: 333 Bytes

Versions: 10

Compression:

Stored size: 333 Bytes

Contents

require 'spec_helper'

describe Virtus::Coercion, '.primitive' do
  Virtus::Coercion.descendants.each do |descendant|
    subject { descendant.primitive }

    let(:primitive) { Object.const_get(descendant.name.split('::').last.to_sym) }

    describe "#{descendant}.primitive" do
      it { should be(primitive) }
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
virtus-0.5.5 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.5.4 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.5.3 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.5.2 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.5.1 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.5.0 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.4.2 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.4.1 spec/unit/virtus/coercion/class_methods/primitive_spec.rb
virtus-0.4.0 spec/unit/virtus/coercion/class_methods/primitive_spec.rb