lib/guard/rspec/results.rb in guard-rspec-4.6.5 vs lib/guard/rspec/results.rb in guard-rspec-4.7.0
- old
+ new
@@ -9,10 +9,10 @@
def initialize(filename)
lines = File.readlines(filename)
if lines.empty? || lines.first.empty?
dump = lines.inspect
- fail InvalidData, "Invalid results in: #{filename},"\
+ raise InvalidData, "Invalid results in: #{filename},"\
" lines:\n#{dump}\n"
end
@summary = lines.first.chomp
@failed_paths = lines[1..11].map(&:chomp).compact