lib/plagiarism/strategries/engine.rb in plagiarism2-0.0.3 vs lib/plagiarism/strategries/engine.rb in plagiarism2-0.0.4

- old
+ new

@@ -11,10 +11,10 @@ end def valid_segments(ps, params) ps.segment.count do |sentence| typhoeus = fetch("\"#{sentence}\"", params) - exists?(typhoeus.response_body) + typhoeus.success? && exists?(typhoeus.response_body) end end def exists?(response) raise