Sha256: 991461fe2601f4961e5a811c31f058604877ce058463d1298fe44c1d0703e0a7

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

require 'rspec'
require 'dm-core/spec/setup'
require 'dm-core/spec/lib/adapter_helpers'

require 'dm-is-read_only'
require 'classes/backend_model'
require 'classes/read_only_model'
require 'classes/related_model'

DataMapper::Spec.setup

RSpec.configure do |config|
  config.extend(DataMapper::Spec::Adapters::Helpers)

  config.before(:suite) do
    DataMapper.finalize
    BackendModel.auto_migrate!

    ('a'..'z').each do |value|
      BackendModel.create(:value => value)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-is-read_only-0.3.0 spec/spec_helper.rb