diff --git a/spec/lib/generators/lint_configs/lint_configs_generator_spec.rb b/spec/lib/generators/lint_configs/lint_configs_generator_spec.rb index 081c32a..acba0fb 100644 --- a/spec/lib/generators/lint_configs/lint_configs_generator_spec.rb +++ b/spec/lib/generators/lint_configs/lint_configs_generator_spec.rb @@ -4,7 +4,7 @@ require "generators/lint_configs/lint_configs_generator" describe LintConfigsGenerator do - let(:lint_configs) { %w[.eslintrc.js .jscsrc .rubocop.yml .scss-lint.yml .pre_commit.ignore] } + let(:lint_configs) { %w[.eslintrc.js .jscsrc .rubocop.yml .scss-lint.yml .pre_commit.ignore .browserslistrc .editorconfig] } describe "#copy_lint_configs" do after do diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index a2071a7..005dad5 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,7 +1,7 @@ # This file is copied to spec/ when you run 'rails generate rspec:install' require 'spec_helper' ENV['RAILS_ENV'] ||= 'test' -require File.expand_path("../../config/environment", __FILE__) +require File.expand_path("../../test_app/config/environment", __FILE__) # Prevent database truncation if the environment is production abort("The Rails environment is running in production mode!") if Rails.env.production? require 'rspec/rails' diff --git a/test_app/Gemfile b/test_app/Gemfile index 3eff4f2..b38f82a 100644 --- a/test_app/Gemfile +++ b/test_app/Gemfile @@ -8,3 +8,5 @@ end gem "rails", "~> 5.2.2" gem "bd_lint", path: "../" gem "rspec" +gem "rspec-rails" +gem "simplecov" diff --git a/test_app/Gemfile.lock b/test_app/Gemfile.lock index c55cd0c..a7bb319 100644 --- a/test_app/Gemfile.lock +++ b/test_app/Gemfile.lock @@ -65,6 +65,7 @@ GEM concurrent-ruby (1.1.5) crass (1.0.4) diff-lcs (1.3) + docile (1.3.2) erubi (1.8.0) execjs (2.7.0) ffi (1.12.1) @@ -73,6 +74,7 @@ GEM i18n (1.6.0) concurrent-ruby (~> 1.0) jaro_winkler (1.5.4) + json (2.3.0) loofah (2.2.3) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -138,6 +140,14 @@ GEM rspec-mocks (3.9.1) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.9.0) + rspec-rails (3.9.0) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.9.0) + rspec-expectations (~> 3.9.0) + rspec-mocks (~> 3.9.0) + rspec-support (~> 3.9.0) rspec-support (3.9.2) rubocop (0.79.0) jaro_winkler (~> 1.5.1) @@ -156,6 +166,11 @@ GEM rb-inotify (~> 0.9, >= 0.9.7) scss_lint (0.59.0) sass (~> 3.5, >= 3.5.5) + simplecov (0.17.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) @@ -179,6 +194,8 @@ DEPENDENCIES bd_lint! rails (~> 5.2.2) rspec + rspec-rails + simplecov BUNDLED WITH 1.17.2