Sha256: db49d2b7d28559b7aa96f77f21f8e90f53f98ca7e5340f1d8ad34397dc98e54d

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'

describe Virtus::Attribute::Numeric, '.descendants' do
  subject { described_class.descendants }

  let(:known_descendants) do
    [ Virtus::Attribute::Integer,
      Virtus::Attribute::Float,
      Virtus::Attribute::Decimal ]
  end

  it "should return all known attribute classes" do
    subject.should eql(known_descendants)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
virtus-0.0.10 spec/unit/virtus/attribute/numeric/class_methods/descendants_spec.rb
virtus-0.0.9 spec/unit/virtus/attribute/numeric/class_methods/descendants_spec.rb
virtus-0.0.8 spec/unit/virtus/attribute/numeric/class_methods/descendants_spec.rb
virtus-0.0.7 spec/unit/virtus/attribute/numeric/class_methods/descendants_spec.rb
virtus-0.0.6 spec/unit/virtus/attribute/numeric/class_methods/descendants_spec.rb
virtus-0.0.5 spec/unit/virtus/attribute/numeric/class_methods/descendants_spec.rb
virtus-0.0.4 spec/unit/virtus/attribute/numeric/class_methods/descendants_spec.rb