spec/helper.rb in remember_me-0.0.1 vs spec/helper.rb in remember_me-0.0.2
- old
+ new
@@ -7,11 +7,35 @@
Coveralls::SimpleCov::Formatter
]
SimpleCov.start
end
+require 'rails'
+require 'action_controller'
require 'active_support/concern'
require 'active_record'
require 'mongoid'
require 'remember_me'
require 'rspec'
+require 'rspec/rails'
+RSpec.configure do |config|
+ config.mock_with :rspec
+end
+
+module Example
+ class Application < Rails::Application
+ end
+end
+
+Example::Application.routes.draw do
+ post 'signin', to: 'sessions#create'
+ get 'signout', to: 'sessions#destroy'
+end
+
+class User
+ include Mongoid::Document
+ include RememberMe::Model
+ def save(arg = {})
+ true
+ end
+end