Sha256: 027dde734060fcc804e687c8238d0edb94ab4b4cb3ec667e0fe89de3f6666aaf

Contents?: true

Size: 605 Bytes

Versions: 8

Compression:

Stored size: 605 Bytes

Contents

shared_examples_for "require 'dm-constraints'" do

  it "should include the constraint api in the DataMapper namespace" do
    DataMapper::Model.respond_to?(:auto_migrate_down_constraints!, true).should be(true)
    DataMapper::Model.respond_to?(:auto_migrate_up_constraints!,   true).should be(true)
  end

  it "should include 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

8 entries across 8 versions & 1 rubygems

Version Path
dm-constraints-1.1.0 spec/isolated/require_spec.rb
dm-constraints-1.1.0.rc3 spec/isolated/require_spec.rb
dm-constraints-1.1.0.rc2 spec/isolated/require_spec.rb
dm-constraints-1.1.0.rc1 spec/isolated/require_spec.rb
dm-constraints-1.0.2 spec/isolated/require_spec.rb
dm-constraints-1.0.1 spec/isolated/require_spec.rb
dm-constraints-1.0.0 spec/isolated/require_spec.rb
dm-constraints-1.0.0.rc3 spec/isolated/require_spec.rb