Sha256: b001421b83eab2627360ca0ddcf92a6fb33773bab76856faaae34aca4da9d187

Contents?: true

Size: 325 Bytes

Versions: 14

Compression:

Stored size: 325 Bytes

Contents

require 'spec_helper'

RSpec.describe RecordCollection::Base do

  it 'Inherits attributes from parent classes' do
    class TestClass1 < RecordCollection::Base
      attribute :attr1
    end

    class TestClass2 < TestClass1
      attribute :attr2
    end
    TestClass2.attribute_names.should eq %w[attr1 attr2]
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
record_collection-0.10.4 spec/base/inheritance_spec.rb
record_collection-0.10.3 spec/base/inheritance_spec.rb
record_collection-0.10.2 spec/base/inheritance_spec.rb
record_collection-0.10.1 spec/base/inheritance_spec.rb
record_collection-0.10.0 spec/base/inheritance_spec.rb
record_collection-0.9.2 spec/base/inheritance_spec.rb
record_collection-0.9.1 spec/base/inheritance_spec.rb
record_collection-0.9.0 spec/base/inheritance_spec.rb
record_collection-0.8.3 spec/base/inheritance_spec.rb
record_collection-0.8.2 spec/base/inheritance_spec.rb
record_collection-0.8.1 spec/base/inheritance_spec.rb
record_collection-0.7.5 spec/base/inheritance_spec.rb
record_collection-0.7.4 spec/base/inheritance_spec.rb
record_collection-0.7.3 spec/base/inheritance_spec.rb