lib/rspex/cli.rb in rspex-0.0.4 vs lib/rspex/cli.rb in rspex-0.0.5

- old
+ new

@@ -22,13 +22,15 @@ def search word, type i = 0 examples = RSpex.examples results = examples.search(word, type) results.each do |example| - say("\n[#{example.path}]", :on_blue) + say("\n", :black) + say("[#{example.path}]", :on_blue) example.results.each{|result| say(result, :on_black)} i += example.results.size end - say("\nfound #{i} example(s) on #{results.size}/#{examples.size} spec(s)", :on_red) + say("\n", :black) + say("found #{i} example(s) on #{results.size}/#{examples.size} spec(s)", :on_red) end end end