1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Drop old test locations from rake stats

- test/functional
- test/unit
This commit is contained in:
brainopia 2015-01-09 12:54:11 +03:00
parent 37704547d9
commit 700f3b7e26
3 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,9 @@
* Drop old test locations from `rake stats`
- test/functional
- test/unit
*Ravil Bayramgalin*
* Update `rake stats` to correctly count declarative tests
as methods in `_test.rb` files.

View file

@ -7,9 +7,7 @@ class CodeStatistics #:nodoc:
'Model tests',
'Mailer tests',
'Job tests',
'Integration tests',
'Functional tests (old)',
'Unit tests (old)']
'Integration tests']
def initialize(*pairs)
@pairs = pairs

View file

@ -14,10 +14,8 @@ STATS_DIRECTORIES = [
%w(Helper\ tests test/helpers),
%w(Model\ tests test/models),
%w(Mailer\ tests test/mailers),
%w(Job\ tests test/jobs),
%w(Job\ tests test/jobs),
%w(Integration\ tests test/integration),
%w(Functional\ tests\ (old) test/functional),
%w(Unit\ tests \ (old) test/unit)
].collect do |name, dir|
[ name, "#{File.dirname(Rake.application.rakefile_location)}/#{dir}" ]
end.select { |name, dir| File.directory?(dir) }