Sha256: 130dc90bc7540bb5192253bb1ee9cccf43519a299840469e04f0f8e04648357e
Contents?: true
Size: 628 Bytes
Versions: 4
Compression:
Stored size: 628 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, Virtus::Attribute::Class ] end it "should return all known attribute classes" do subject.should eql(known_descendants) end end
Version data entries
4 entries across 4 versions & 1 rubygems