mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
cleanup after #300
This commit is contained in:
parent
fbda714c79
commit
79a3583d95
3 changed files with 10 additions and 12 deletions
|
@ -20,7 +20,6 @@ module DatabaseCleaner
|
|||
rollback
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def rollback
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,7 +2,6 @@ require File.dirname(__FILE__) + '/../../spec_helper'
|
|||
require 'neo4j-core'
|
||||
require 'database_cleaner/neo4j/transaction'
|
||||
|
||||
|
||||
module DatabaseCleaner
|
||||
module Neo4j
|
||||
|
||||
|
|
Loading…
Reference in a new issue