Skip to content

Commit

Permalink
Update spec and include required deps
Browse files Browse the repository at this point in the history
  • Loading branch information
wenga86 committed Jan 15, 2020
1 parent 4654435 commit 8366e17
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 2 additions & 0 deletions test_app/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ end
gem "rails", "~> 5.2.2"
gem "bd_lint", path: "../"
gem "rspec"
gem "rspec-rails"
gem "simplecov"
17 changes: 17 additions & 0 deletions test_app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -179,6 +194,8 @@ DEPENDENCIES
bd_lint!
rails (~> 5.2.2)
rspec
rspec-rails
simplecov

BUNDLED WITH
1.17.2

0 comments on commit 8366e17

Please sign in to comment.