Sha256: afdf4b120d9186c3042ee2394fd663de9930a48221822513298f050937baea96
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute::Object, '.descendants' do subject { described_class.descendants } let(:known_descendants) do [ Virtus::Attribute::Time, Virtus::Attribute::String, Virtus::Attribute::Integer, Virtus::Attribute::Hash, Virtus::Attribute::Float, Virtus::Attribute::Decimal, Virtus::Attribute::Numeric, Virtus::Attribute::DateTime, Virtus::Attribute::Date, Virtus::Attribute::Boolean, Virtus::Attribute::Array ] end it "should return all known attribute classes" do subject.should eql(known_descendants) end end
Version data entries
3 entries across 3 versions & 1 rubygems