Skip to content
Permalink
Browse files

rails generate rspec:install

  • Loading branch information...
dblock committed Jul 6, 2018
1 parent fc034c9 commit 3af9b987c4d2154d861cffa3a39fdc15820b48b6
Showing with 46 additions and 1 deletion.
  1. +1 −0 .rspec
  2. +1 −1 .rubocop_todo.yml
  3. +1 −0 Gemfile
  4. +19 −0 Gemfile.lock
  5. +13 −0 spec/rails_helper.rb
  6. +11 −0 spec/spec_helper.rb
1 .rspec
@@ -0,0 +1 @@
--require spec_helper
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-07-05 20:42:49 -0400 using RuboCop version 0.57.2.
# on 2018-07-05 20:44:56 -0400 using RuboCop version 0.57.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
@@ -11,6 +11,7 @@ gem 'rails', '~> 5.2.0'
gem 'rack-cors'

group :development, :test do
gem 'rspec-rails'
gem 'rubocop'
end

@@ -50,6 +50,7 @@ GEM
builder (3.2.3)
concurrent-ruby (1.0.5)
crass (1.0.4)
diff-lcs (1.3)
erubi (1.7.1)
ffi (1.9.25)
globalid (0.4.1)
@@ -120,6 +121,23 @@ GEM
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-rails (3.7.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
rubocop (0.57.2)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
@@ -161,6 +179,7 @@ DEPENDENCIES
puma (~> 3.11)
rack-cors
rails (~> 5.2.0)
rspec-rails
rubocop
spring
spring-watcher-listen (~> 2.0.0)
@@ -0,0 +1,13 @@
require 'spec_helper'

ENV['RAILS_ENV'] ||= 'test'

require File.expand_path('../config/environment', __dir__)

abort('The Rails environment is running in production mode!') if Rails.env.production?
require 'rspec/rails'

RSpec.configure do |config|
config.infer_spec_type_from_file_location!
config.filter_rails_from_backtrace!
end
@@ -0,0 +1,11 @@
RSpec.configure do |config|
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

0 comments on commit 3af9b98

Please sign in to comment.
You can’t perform that action at this time.