Sha256: defd83ccbba60ea46e2ccd492c820972d833ba2335958d8ee787695188e7a60c
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
Contents
require 'pathname' require Pathname(__FILE__).dirname.expand_path + 'spec_helper' require 'dm-migrations' describe 'support migrations' do #TODO do this on different storage class Person include DataMapper::Resource property :id, String, :key => true property :name, String, :key => true property :age, Integer property :wealth, Float property :birthday, Date property :created_at, DateTime end # test can't be run simultanious make it delete a throwawaable storage model # instead of the one used by all the tests # it "should destroy model storage" do # ENV['destroy']='true' # @adapter.destroy_model_storage(repository(:default), Person) # @adapter.storage_exists?("missionaries").should == false # ENV['destroy']='false' # @adapter.create_model_storage(repository(:default), Person) # @adapter.storage_exists?("missionaries").should == true # end before :all do @sdb.delete_domain(@domain) end it "should create model storage" do DataMapper.auto_migrate! @adapter.storage_exists?(@domain).should == true end end
Version data entries
6 entries across 6 versions & 1 rubygems