cleanup after #300

This commit is contained in:
Jon Rowe 2014-12-09 10:28:17 +11:00
parent fbda714c79
commit 79a3583d95
3 changed files with 10 additions and 12 deletions

View file

@ -20,7 +20,6 @@ module DatabaseCleaner
rollback
end
private
def rollback

View file

@ -153,7 +153,14 @@ module DatabaseCleaner
cleaner.should be_auto_detected
end
it 'detects Ohm seventh' do
it 'detects Moped seventh' do
Object.const_set('Moped', 'Moped mock')
cleaner.orm.should eq :moped
cleaner.should be_auto_detected
end
it 'detects Ohm eighth' do
Object.const_set('Ohm', 'Ohm mock')
Object.const_set('Redis', 'Redis mock')
Object.const_set('Neo4j', 'Neo4j mock')
@ -162,7 +169,7 @@ module DatabaseCleaner
cleaner.should be_auto_detected
end
it 'detects Redis eighth' do
it 'detects Redis ninth' do
Object.const_set('Redis', 'Redis mock')
Object.const_set('Neo4j', 'Neo4j mock')
@ -170,19 +177,12 @@ module DatabaseCleaner
cleaner.should be_auto_detected
end
it 'detects Neo4j ninth' do
it 'detects Neo4j tenth' do
Object.const_set('Neo4j', 'Neo4j mock')
cleaner.orm.should eq :neo4j
cleaner.should be_auto_detected
end
it 'detects Moped seventh' do #FIXME
Object.const_set('Moped', 'Moped mock')
cleaner.orm.should eq :moped
cleaner.should be_auto_detected
end
end
describe "orm_module" do

View file

@ -2,7 +2,6 @@ require File.dirname(__FILE__) + '/../../spec_helper'
require 'neo4j-core'
require 'database_cleaner/neo4j/transaction'
module DatabaseCleaner
module Neo4j