Permalink
Browse files

rspec-2 compatible

  • Loading branch information...
1 parent 1942dcf commit 9701d24ffa4abc6ef68af62029abc3399b39218c Kaid committed Jul 24, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/remarkable/mongo_mapper.rb
@@ -23,8 +23,8 @@
end
# Include Remarkable MongoMapper matcher in appropriate ExampleGroup
-if defined?(Spec::Rails)
- Remarkable.include_matchers!(Remarkable::MongoMapper, Spec::Rails::Example::ModelExampleGroup)
+if defined?(Rspec::Rails)
+ Remarkable.include_matchers!(Remarkable::MongoMapper, Rspec::Rails::ModelExampleGroup)
else
- Remarkable.include_matchers!(Remarkable::MongoMapper, Spec::Example::ExampleGroup)
-end
+ Remarkable.include_matchers!(Remarkable::MongoMapper, Rspec::Core::ExampleGroup)
+end

0 comments on commit 9701d24

Please sign in to comment.