From 95654017d17dd72761a661acd856465b2aa76aad Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Tue, 31 Dec 2019 14:50:31 +1300 Subject: [PATCH] added frozen literals --- Guardfile | 2 ++ Rakefile | 2 ++ config.ru | 2 ++ spec/rails_helper.rb | 4 ++-- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Guardfile b/Guardfile index e4197ab07..8e9e7cc88 100644 --- a/Guardfile +++ b/Guardfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + guard :rspec, cmd: 'bundle exec rspec --format documentation', failed_mode: :keep do diff --git a/Rakefile b/Rakefile index 15ae3eb68..88a812821 100755 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,6 @@ #!/usr/bin/env rake +# frozen_string_literal: true + # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. diff --git a/config.ru b/config.ru index bd83b2541..61c04e13f 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 5082ce6ab..24d044f26 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -59,8 +59,8 @@ include Warden::Test::Helpers # directory. Alternatively, in the individual `*_spec.rb` files, manually # require only the support files necessary. # -Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } -Dir[Rails.root.join("spec/features/shared_examples/**/*.rb")].each { |f| require f } +Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |f| require f } +Dir[Rails.root.join("spec/features/shared_examples/**/*.rb")].sort.each { |f| require f } # Checks for pending migrations before tests are run. # If you are not using ActiveRecord, you can remove this line.