Skip to content

Commit d55fdba

Browse files
committed
Re-group the gems and fix errors from running rspec
1 parent 3b18637 commit d55fdba

File tree

4 files changed

+14
-20
lines changed

4 files changed

+14
-20
lines changed

rails_docker/Gemfile.txt

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,22 @@ group :development do
3232
gem 'binding_of_caller' # Retrieve the binding of a method's caller in MRI 1.9.2+
3333
gem 'awesome_print' # Pretty print your Ruby objects with style -- in full color and with proper indentation
3434
gem 'guard-rubocop'
35+
gem 'guard-rspec' # Auto-run specs
3536
gem 'roadie-rails' # Mailers
3637
gem 'rubycritic', require: false # A Ruby code quality reporter
37-
gem 'brakeman', require: false # A static analysis security vulnerability scanner for Ruby on Rails applications
38+
gem 'spring' # Spring speeds up development by keeping your application running in the background.
39+
gem 'spring-commands-rspec' # This gem implements the rspec command for Spring.
40+
gem 'spring-watcher-listen', '2.0.1' # Makes Spring watch the filesystem for changes using Listen
3841
end
3942

4043
group :development, :test do
4144
gem 'bullet' # help to kill N+1 queries and unused eager loading
4245
gem 'figaro' # Simple Rails app configuration
43-
gem 'rspec-rails' # Rails testing engine
44-
gem 'guard-rspec' # Auto-run specs
45-
gem 'shoulda-matchers' # Tests common Rails functionalities
46-
gem 'capybara', '>= 2.15' # Integration testing
47-
gem 'selenium-webdriver', '3.7.0' # Ruby bindings for Selenium/WebDriver
48-
gem 'database_cleaner' # Use Database Cleaner
49-
5046
gem 'pry-rails' # Call 'binding.pry' anywhere in the code to stop execution and get a debugger console
51-
gem 'spring' # Spring speeds up development by keeping your application running in the background.
52-
gem 'spring-commands-rspec' # This gem implements the rspec command for Spring.
53-
gem 'spring-watcher-listen', '2.0.1' # Makes Spring watch the filesystem for changes using Listen
5447
gem 'listen', '3.1.5' # Listens to file modifications
5548
gem 'letter_opener' # Preview mail in the browser instead of sending.
56-
5749
gem 'sassc-rails' # Gem to generate scss source maps
50+
gem 'brakeman', require: false # A static analysis security vulnerability scanner for Ruby on Rails applications
5851

5952
gem 'pronto'
6053
gem 'pronto-rubocop', require: false
@@ -69,14 +62,19 @@ group :development, :test do
6962
end
7063

7164
group :test do
65+
gem 'rspec-rails' # Rails testing engine
66+
gem 'rspec-retry' # Retry randomly failing rspec example.
67+
gem 'capybara', '>= 2.15' # Integration testing
68+
gem 'selenium-webdriver', '3.7.0' # Ruby bindings for Selenium/WebDriver
69+
gem 'database_cleaner' # Use Database Cleaner
70+
gem 'shoulda-matchers' # Tests common Rails functionalities
71+
gem 'json_matchers' # Validate the JSON returned by your Rails JSON APIs
7272
gem 'webmock' # Library for stubbing and setting expectations on HTTP requests in Ruby
7373
gem 'simplecov', require: false # code coverage analysis tool for Ruby
7474
gem 'vcr' # Gem for recording test suite's HTTP interactions
7575
gem 'timecop' # Gem for time travel
76-
gem 'json_matchers' # Validate the JSON returned by your Rails JSON APIs
77-
gem 'rspec-retry' # Retry randomly failing rspec example.
7876
end
7977

8078
group :production do
81-
gem 'rack-timeout' # Rack middleware which aborts requests that have been running for longer than a specified timeout.
79+
gem 'rack-timeout' # Rack middleware which aborts requests that have been running for longer than a specified timeout.
8280
end

shared/rspec/codebase/codebase_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
expect(`rubocop --format simple`).to include 'no offenses detected'
66
end
77

8-
it 'satisfies Breakman' do
8+
it 'satisfies Brakeman' do
99
expect(`brakeman -w2`).not_to include '+SECURITY WARNINGS+'
1010
end
1111

shared/rspec/support/capybara.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@
4444

4545
Capybara.javascript_driver = :chrome
4646
Capybara.default_max_wait_time = CAPYBARA_TIMEOUT
47-
Capybara.wait_on_first_by_default = true

shared/rspec/support/json_matchers.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)