Sha256: c64d59220551d202405af83197c1007ced2222a5b1b7fc3c66eb01a3223b6b6a

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

if ENV["CI"]
  require 'simplecov'
  require 'coveralls'

  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ]
  SimpleCov.start
end

require 'rails'
require 'action_controller'
require 'action_view'
require 'active_support/concern'
require 'mongoid'
require 'remember_me'
require 'rspec'
require 'rspec/rails'
require 'securerandom'

RSpec.configure do |config|
  config.mock_with :rspec
  config.infer_base_class_for_anonymous_controllers = true
end

module Example
  class Application < Rails::Application
  end
end

# for secret_key_base
Example::Application.config.secret_key_base = SecureRandom.hex(64)

Example::Application.config.session_options = {}

class User
  include Mongoid::Document
  include RememberMe::Model
  def save(arg = {})
    true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remember_me-1.0.0 spec/helper.rb