Created
February 27, 2018 13:10
-
-
Save anoobbava/27255d8052d7b8d5ac095f511e6e242b to your computer and use it in GitHub Desktop.
Spec_helper for Blog Application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # encoding: utf-8 | |
| require 'simplecov' | |
| ENV['RAILS_ENV'] = 'test' | |
| require File.expand_path('../../config/environment', __FILE__) | |
| require 'rspec/rails' | |
| SimpleCov.start do | |
| add_group 'Controllers', 'app/controllers' | |
| add_group 'Models', 'app/models' | |
| end | |
| RSpec.configure do |config| | |
| config.include Devise::Test::ControllerHelpers, type: :controller | |
| # config.infer_spec_type_from_file_location! | |
| config.expect_with :rspec do |expectations| | |
| expectations.include_chain_clauses_in_custom_matcher_descriptions = true | |
| end | |
| config.mock_with :rspec do |mocks| | |
| mocks.verify_partial_doubles = true | |
| end | |
| config.shared_context_metadata_behavior = :apply_to_host_groups | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment