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:
parent
37704547d9
commit
700f3b7e26
3 changed files with 8 additions and 6 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue