Better implementation of counting Classes and Tests for RSpec.

This commit is contained in:
Dominik Ritter 2015-04-02 09:49:26 +02:00
parent aadf37bd35
commit 94af6aae43
1 changed files with 2 additions and 2 deletions

View File

@ -313,8 +313,8 @@ prompt_aws() {
# RSpec test ratio
prompt_rspec_stats() {
if [[ (-d app && -d spec) ]]; then
local code_amount=$(wc -l app/**/*.rb | grep -oE "[0-9]+" | tail -n 1)
local tests_amount=$(wc -l spec/**/*.rb | grep -oE "[0-9]+" | tail -n 1)
local code_amount=$(ls -1 app/**/*.rb | wc -l)
local tests_amount=$(ls -1 spec/**/*.rb | wc -l)
build_test_stats $1 $code_amount $tests_amount "RSpec"
fi