Permalink
Browse files

Merge pull request #4 from mbj/feature/general-shared-adapter-spec

Compatiblitiy with datamapper/dm-core#119
  • Loading branch information...
2 parents dc40fb4 + 51ac6b7 commit c76fb44804a352540f6e435c38e396650eca2ace @solnic solnic committed Jan 8, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 spec/adapter_spec.rb
View
@@ -11,10 +11,8 @@
describe 'DataMapper::Adapters::PostgresAdapter' do
- before :all do
- @adapter = DataMapper::Spec.adapter
- @repository = DataMapper.repository(@adapter.name)
- end
+ let(:adapter) { DataMapper::Spec.adapter }
+ let(:repository) { DataMapper.repository(adapter.name) }
it_should_behave_like "An Adapter"
it_should_behave_like "A DataObjects Adapter"

0 comments on commit c76fb44

Please sign in to comment.