Fix Lint/DeprecatedClassMethods
This commit is contained in:
parent
08efe9f7a8
commit
a6efd0b2ec
|
@ -1,13 +1,6 @@
|
||||||
# Remove these configuration records
|
# Remove these configuration records
|
||||||
# one by one as the offenses are removed from the code base.
|
# 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
|
# Offense count: 3
|
||||||
Lint/HandleExceptions:
|
Lint/HandleExceptions:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
ENV["RAILS_ENV"] ||= 'test'
|
ENV["RAILS_ENV"] ||= 'test'
|
||||||
ENV["DB"] ||= 'sqlite'
|
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"
|
warn "WARNING: No database.yml detected for the dummy app, please run `rake prepare` first"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ end
|
||||||
ENV["RAILS_ENV"] = "test"
|
ENV["RAILS_ENV"] = "test"
|
||||||
ENV["DB"] ||= "sqlite"
|
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"
|
warn "WARNING: No database.yml detected for the dummy app, please run `rake prepare` first"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue