Sha256: 30e860206540bce16315092d0997f6ae6dbc909444f62e378c67308cdef05ad0

Contents?: true

Size: 368 Bytes

Versions: 10

Compression:

Stored size: 368 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper.rb')

describe 'Type families' do

  let(:types) { ObjectSpace.each_object(Class).select { |k| k < Attributor::Type } }

  it 'are set on all types' do
    types.each do |type|
      next if type == Attributor::Object # object has no set family
      type.should_not be_in_family('attributor')
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
attributor-5.0.2 spec/families_spec.rb
attributor-5.0.1 spec/families_spec.rb
attributor-5.0 spec/families_spec.rb
attributor-4.2.0 spec/families_spec.rb
attributor-4.1.0 spec/families_spec.rb
attributor-4.0.1 spec/families_spec.rb
attributor-4.0.0 spec/families_spec.rb
attributor-3.0.1 spec/families_spec.rb
attributor-3.0 spec/families_spec.rb
attributor-2.6.1 spec/families_spec.rb