Fix Lint/DeprecatedClassMethods

This commit is contained in:
Jared Beck 2016-02-15 19:30:17 -05:00
parent 08efe9f7a8
commit a6efd0b2ec
3 changed files with 2 additions and 9 deletions

View File

@ -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:

View File

@ -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

View File

@ -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