Skip to content
Browse files

fixing rspec environment

  • Loading branch information...
1 parent 3dd365f commit a02d95f8498cc1e107a062b8ec8b2637c884d1f5 @lucasas committed
Showing with 6 additions and 16 deletions.
  1. +0 −14 spec/integration/mongoid_paginator.rb
  2. +5 −1 spec/spec_helper.rb
  3. +1 −1 will_paginate_mongoid.gemspec
View
14 spec/integration/mongoid_paginator.rb
@@ -1,14 +0,0 @@
-require File.expand_path('../spec_helper', File.dirname(__FILE__))
-
-describe WillPaginateMongoid::MongoidPaginator
- before :all do
- class Game
- include ::Mongoid::Document
- field :title, :type => String
- end
- end
-
- describe :paginate
-
- end
-end
View
6 spec/spec_helper.rb
@@ -2,4 +2,8 @@
require 'will_paginate'
require 'will_paginate_mongoid'
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
+
+RSpec.configure do |config|
+ config.mock_with :rspec
+end
View
2 will_paginate_mongoid.gemspec
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.authors = ["Lucas Souza"]
s.email = ["lucasas@gmail.com"]
s.homepage = ""
- s.summary = "A extension that becomes possible use paginate method in Mongoid"
+ s.summary = "An extension that becomes possible use paginate method with Mongoid"
s.description = ""
s.rubyforge_project = "will_paginate_mongoid"

0 comments on commit a02d95f

Please sign in to comment.
Something went wrong with that request. Please try again.