mongoid_identity_map 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,4 +17,4 @@ module MongoidIdentityMap
17
17
  end
18
18
  end
19
19
 
20
- Mongoid::Collection.send(:include, MongoidIdentityMap::IdentityMappable)
20
+ Mongoid::Collection.send(:include, MongoidIdentityMap::IdentityMappable) unless defined?(Rails) && Rails.env.test?
@@ -1,7 +1,7 @@
1
1
  module MongoidIdentityMap
2
2
  class Railtie < Rails::Railtie
3
3
  initializer "mongoid_identity_map.initializer" do |app|
4
- app.middleware.use MongoidIdentityMap::ClearMiddleware
4
+ app.middleware.use MongoidIdentityMap::ClearMiddleware unless Rails.env.test?
5
5
  end
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidIdentityMap
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Guilherme Cirne