Sha256: df97d004c14572adaab1f05d7f8956fbc0199ef2e13fafac4340ec801060a2f7
Contents?: true
Size: 819 Bytes
Versions: 13
Compression:
Stored size: 819 Bytes
Contents
require 'spec' require 'isolated/require_spec' require 'dm-core/spec/setup' require 'dm-core/spec/lib/adapter_helpers' # To really test this behavior, this spec needs to be run in isolation and not # as part of the typical rake spec run, which requires dm-transactions upfront Spec::Runner.configure do |config| config.extend(DataMapper::Spec::Adapters::Helpers) end describe "require 'dm-constraints' before calling DataMapper.setup" do before(:all) do require 'dm-constraints' @adapter = DataMapper::Spec.adapter class ::Person include DataMapper::Resource property :id, Serial has n, :tasks end class ::Task include DataMapper::Resource property :id, Serial belongs_to :person end end it_should_behave_like "require 'dm-constraints'" end
Version data entries
13 entries across 13 versions & 1 rubygems