Sha256: 9ad7a81da4842e6c0e2e5d16de3233195504ad9f90ef3be810fdc9c01a152d9f

Contents?: true

Size: 123 Bytes

Versions: 31

Compression:

Stored size: 123 Bytes

Contents

Spec::Matchers.define(:be_a_subclass_of) do |ancestor|
  match do |klass|
    klass.ancestors.include?(ancestor)
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
mongomodel-0.3.3 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.3.2 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.3.1 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.3.0 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.20 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.19 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.18 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.17 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.16 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.15 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.14 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.13 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.12 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.11 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.10 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.9 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.8 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.7 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.6 spec/support/matchers/be_a_subclass_of.rb
mongomodel-0.2.5 spec/support/matchers/be_a_subclass_of.rb