Sha256: ce187a7bc814feffa9e1f24c38f872d17766150620a4d3c1516ac83f26989270
Contents?: true
Size: 672 Bytes
Versions: 15
Compression:
Stored size: 672 Bytes
Contents
require 'spec' require 'isolated/require_spec' require 'dm-core/spec/setup' # 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 if %w[ postgres mysql sqlite oracle sqlserver ].include?(ENV['ADAPTER']) describe "require 'dm-migrations' after calling DataMapper.setup" do before(:all) do @adapter = DataMapper::Spec.adapter require 'dm-migrations' class ::Person include DataMapper::Resource property :id, Serial end @model = Person end it_should_behave_like "require 'dm-migrations'" end end
Version data entries
15 entries across 15 versions & 3 rubygems