Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Spec::Runner.configure do |config|
- # used to be :all when transactional fixtures are working
- config.before(:each) do
- DataMapper.auto_migrate!
- end
- # needs to be commented currently with 0.10.0
- # config.before(:each) do
- # DataMapper.repository(:default) do |r|
- # transaction = DataMapper::Transaction.new(r)
- # transaction.begin
- # r.adapter.push_transaction(transaction)
- # end
- # end
- #
- # config.after(:each) do
- # DataMapper.repository(:default) do |r|
- # adapter = r.adapter
- # while adapter.current_transaction
- # adapter.current_transaction.rollback
- # adapter.pop_transaction
- # end
- # end
- # end
- end
Add Comment
Please, Sign In to add comment