remarkable_mongoid 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/remarkable_mongoid.rb +10 -0
- metadata +2 -2
data/lib/remarkable_mongoid.rb
CHANGED
@@ -6,3 +6,13 @@ end
|
|
6
6
|
require 'remarkable/active_model'
|
7
7
|
require 'remarkable_mongoid/associations'
|
8
8
|
require 'remarkable_mongoid/validate_uniqueness_of'
|
9
|
+
|
10
|
+
if defined?(RSpec) # RSpec 2.x
|
11
|
+
RSpec.configure do |config|
|
12
|
+
config.include(Remarkable::Mongoid::Matchers)
|
13
|
+
end
|
14
|
+
elsif defined?(Spec) # RSpec 1.x
|
15
|
+
Spec::Runner.configure do |config|
|
16
|
+
config.include(Remarkable::Mongoid::Matchers)
|
17
|
+
end
|
18
|
+
end
|