From a6efd0b2ec1d373441713cd92d17f6ec684cf309 Mon Sep 17 00:00:00 2001 From: Jared Beck Date: Mon, 15 Feb 2016 19:30:17 -0500 Subject: [PATCH] Fix Lint/DeprecatedClassMethods --- .rubocop_todo.yml | 7 ------- spec/rails_helper.rb | 2 +- test/test_helper.rb | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e4d60cf0..c38b172b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,13 +1,6 @@ # Remove these configuration records # one by one as the offenses are removed from the code base. -# Offense count: 2 -# Cop supports --auto-correct. -Lint/DeprecatedClassMethods: - Exclude: - - 'spec/rails_helper.rb' - - 'test/test_helper.rb' - # Offense count: 3 Lint/HandleExceptions: Exclude: diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 358e0f3e..303a88c6 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -2,7 +2,7 @@ ENV["RAILS_ENV"] ||= 'test' ENV["DB"] ||= 'sqlite' -unless File.exists?(File.expand_path('../../test/dummy/config/database.yml', __FILE__)) +unless File.exist?(File.expand_path('../../test/dummy/config/database.yml', __FILE__)) warn "WARNING: No database.yml detected for the dummy app, please run `rake prepare` first" end diff --git a/test/test_helper.rb b/test/test_helper.rb index b943864f..9d823444 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -7,7 +7,7 @@ end ENV["RAILS_ENV"] = "test" ENV["DB"] ||= "sqlite" -unless File.exists?(File.expand_path('../../test/dummy/config/database.yml', __FILE__)) +unless File.exist?(File.expand_path('../../test/dummy/config/database.yml', __FILE__)) warn "WARNING: No database.yml detected for the dummy app, please run `rake prepare` first" end