1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Resolved Mongoid/MongoMapper specs dependency

This commit is contained in:
Mike Dvorkin 2012-09-06 16:34:11 -07:00
parent 2960784d81
commit da0defa87a
2 changed files with 12 additions and 4 deletions

View file

@ -5,10 +5,6 @@ begin
require "awesome_print/ext/mongo_mapper" require "awesome_print/ext/mongo_mapper"
describe "AwesomePrint/MongoMapper" do describe "AwesomePrint/MongoMapper" do
before do
stub_dotfile!
end
before :all do before :all do
class MongoUser class MongoUser
include MongoMapper::Document include MongoMapper::Document
@ -18,7 +14,13 @@ begin
end end
end end
after :all do
Object.instance_eval{ remove_const :MongoUser }
Object.instance_eval{ remove_const :Chamelion }
end
before do before do
stub_dotfile!
@ap = AwesomePrint::Inspector.new(:plain => true, :sort_keys => true) @ap = AwesomePrint::Inspector.new(:plain => true, :sort_keys => true)
end end

View file

@ -14,7 +14,13 @@ begin
end end
end end
after :all do
Object.instance_eval{ remove_const :MongoUser }
Object.instance_eval{ remove_const :Chamelion }
end
before do before do
stub_dotfile!
@ap = AwesomePrint::Inspector.new :plain => true, :sort_keys => true @ap = AwesomePrint::Inspector.new :plain => true, :sort_keys => true
end end