Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request #10 from mbj/feature/general-shared-adapter-spec
Browse files Browse the repository at this point in the history
Compatiblitiy with datamapper/dm-core#119
  • Loading branch information
solnic committed Jan 8, 2012
2 parents 06120a8 + 6f6fa72 commit 64d86fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/adapter_spec.rb
Expand Up @@ -50,12 +50,12 @@ def sql_log_buffer

describe 'DataMapper::Adapters::OracleAdapter' do

before :all do
@adapter = DataMapper::Spec.adapter
@repository = DataMapper.repository(@adapter.name)
let(:adapter) { DataMapper::Spec.adapter }
let(:repository) { DataMapper.repository(adapter.name) }

before :all do
# speed up test execution
@adapter.class.class_eval do
adapter.class.class_eval do
auto_migrate_with :delete # table data will be deleted instead of dropping and creating table
auto_migrate_reset_sequences false # primary key sequences will not be reset
end
Expand Down

0 comments on commit 64d86fa

Please sign in to comment.