Sha256: 065995b5079567cd80e56e9bd71529fe169b26468f577ca3cbc448aa05529e3f

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

require File.expand_path("../../spec_helper", File.dirname(__FILE__))

describe MongoMapper::Plugins::StrictKeys::Bang do
  class ForcedBySugar
    include MongoMapper::Document
    strict_keys!
  end

  context 'MongoMapper::Plugins::StrictKeys Mixin' do
    it 'should be present in the ancestors' do
      ForcedBySugar.ancestors.should include(MongoMapper::Plugins::StrictKeys::InstanceMethods)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo_mapper-strict_keys-0.0.5 spec/mongo_mapper/strict_keys/bang_spec.rb
mongo_mapper-strict_keys-0.0.4 spec/mongo_mapper/strict_keys/bang_spec.rb