Sha256: 27b2e92579b9b9d9e0030691766b70f6acc4f0a2d0169a3e15386449aecbc387
Contents?: true
Size: 453 Bytes
Versions: 7
Compression:
Stored size: 453 Bytes
Contents
require 'rspec' require 'dm-core/spec/setup' require 'dm-core/spec/lib/adapter_helpers' require 'dm-chunked_query' class TestModel include DataMapper::Resource property :id, Serial property :number, Integer end DataMapper::Spec.setup RSpec.configure do |config| config.extend(DataMapper::Spec::Adapters::Helpers) config.before(:suite) do TestModel.auto_migrate! (1..100).each { |i| TestModel.create(:number => i) } end end
Version data entries
7 entries across 7 versions & 1 rubygems