diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-04-02 10:49:26 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-04-02 10:49:26 +0300 |
commit | 94af6aae4335a01b522cc1379d6e1ff96025e3fb (patch) | |
tree | c378ffc4a0c694f0b40c19cb1e2d7c5745973a45 | |
parent | aadf37bd35c960fd337f73f78b91774e2ee13b0f (diff) |
Better implementation of counting Classes and Tests for RSpec.
-rw-r--r-- | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index f279f994..92efcaee 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -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 |