Sha256: 2eb20caf6c97d6a8af867e4889316a80f46a6bb441c3503f5225b33290a4e2a2
Contents?: true
Size: 677 Bytes
Versions: 3
Compression:
Stored size: 677 Bytes
Contents
shared_examples_for "require 'dm-constraints'" do it "extends Model descendants with the constraint API" do DataMapper::Model.descendants.should_not be_empty DataMapper::Model.descendants.all? do |model| model.respond_to?(:auto_migrate_constraints_down, true).should be(true) model.respond_to?(:auto_migrate_constraints_up, true).should be(true) end end it "includes the constraint API into the adapter" do @adapter.respond_to?(:constraint_exists? ).should be(true) @adapter.respond_to?(:create_relationship_constraint ).should be(true) @adapter.respond_to?(:destroy_relationship_constraint).should be(true) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm-constraints-1.2.0 | spec/isolated/require_spec.rb |
dm-constraints-1.2.0.rc2 | spec/isolated/require_spec.rb |
dm-constraints-1.2.0.rc1 | spec/isolated/require_spec.rb |