From 66612eeb04fd59b6cb26919f38859d0440f68153 Mon Sep 17 00:00:00 2001 From: sdogruyol Date: Mon, 5 Jun 2017 15:34:27 +0300 Subject: [PATCH] Match should eq nil not be --- spec/static_file_handler_spec.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/static_file_handler_spec.cr b/spec/static_file_handler_spec.cr index 695fb5a..845d40b 100644 --- a/spec/static_file_handler_spec.cr +++ b/spec/static_file_handler_spec.cr @@ -117,7 +117,7 @@ describe Kemal::StaticFileHandler do if response.status_code == 206 response.headers.has_key?("Content-Range").should eq true match = response.headers["Content-Range"].match(/bytes (\d+)-(\d+)\/(\d+)/) - match.should_not be nil + match.should_not eq nil if match start_range = match[1].to_i { 0 } end_range = match[2].to_i { 0 }