From e2e9b28753e36b7f7c15b839d96e19d13d2172a8 Mon Sep 17 00:00:00 2001 From: Brandon McGinty-Carroll Date: Mon, 16 Oct 2017 12:50:07 -0400 Subject: [PATCH] remove extra periods in spec --- spec/std/http/cookie_spec.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/std/http/cookie_spec.cr b/spec/std/http/cookie_spec.cr index 609320657b41..66afe2021ffb 100644 --- a/spec/std/http/cookie_spec.cr +++ b/spec/std/http/cookie_spec.cr @@ -156,7 +156,7 @@ module HTTP describe "expiration_time" do it "sets expiration_time to be current when max-age=0" do cookie = parse_set_cookie("bla=1; max-age=0") - (Time.now - cookie.expiration_time.not_nil!).should be.<= 1.seconds + (Time.now - cookie.expiration_time.not_nil!).should be <= 1.seconds end it "sets expiration_time with old date" do @@ -166,14 +166,14 @@ module HTTP it "sets future expiration_time with max-age" do cookie = parse_set_cookie("bla=1; max-age=1") - (cookie.expiration_time.not_nil!).should be.> Time.now + (cookie.expiration_time.not_nil!).should be > Time.now end it "sets future expiration_time with max-age and future cookie creation time" do cookie = parse_set_cookie("bla=1; max-age=1") cookie_expiration = cookie.expiration_time(time_reference: Time.now + 20.seconds).not_nil! - (Time.now + 20.seconds).should be.< cookie_expiration - (Time.now + 21.seconds).should be.>= cookie_expiration + (Time.now + 20.seconds).should be < cookie_expiration + (Time.now + 21.seconds).should be >= cookie_expiration end it "sets future expiration_time with expires" do @@ -211,8 +211,8 @@ module HTTP it "sets past expiration_time with max-age and future time reference" do cookie = parse_set_cookie("bla=1; max-age=1") cookie_expiration = cookie.expiration_time(time_reference: Time.now - 20.seconds).not_nil! - (Time.now - 20.seconds).should be.< cookie_expiration - (Time.now - 18.seconds).should be.> cookie_expiration + (Time.now - 20.seconds).should be < cookie_expiration + (Time.now - 18.seconds).should be > cookie_expiration cookie_expired = cookie.expired?(time_reference: Time.now - 20.seconds) cookie_expired.should be_true end