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:
parent
2960784d81
commit
da0defa87a
2 changed files with 12 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue