1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-21 11:50:07 +00:00

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

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