Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rspec.configure do |config|
- config.mock_with :mocha
- # Remove this line if you don't want Rspec's should and should_not
- # methods or matchers
- require 'rspec/expectations'
- config.include Rspec::Matchers
- config.include LLP::Test::ControllerHelper
- config.after(:each) do
- repository(:default) do
- while repository.adapter.current_transaction
- repository.adapter.current_transaction.rollback
- repository.adapter.pop_transaction
- end
- end
- end
- config.before(:each) do
- repository(:default) do
- transaction = DataMapper::Transaction.new(repository)
- transaction.begin
- repository.adapter.push_transaction(transaction)
- end
- end
- end
Add Comment
Please, Sign In to add comment