Permalink
Browse files

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

Compatiblitiy with datamapper/dm-core#119
  • Loading branch information...
2 parents 0ba4f7c + 8480a86 commit ab08f5f57b77867b882f5fe873574d5a6b1f23be @solnic solnic committed Jan 8, 2012
Showing with 5 additions and 7 deletions.
  1. +5 −7 spec/adapter_spec.rb
View
12 spec/adapter_spec.rb
@@ -9,14 +9,12 @@
ENV['ADAPTER'] = 'mysql'
ENV['ADAPTER_SUPPORTS'] = 'all'
-describe "DataMapper::Adapters::MysqlAdapter" do
+describe 'DataMapper::Adapters::MysqlAdapter' 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"
+ it_should_behave_like 'An Adapter'
+ it_should_behave_like 'A DataObjects Adapter'
end

0 comments on commit ab08f5f

Please sign in to comment.