From b2f107f83f21725adb940662099dfeb2cb6d25e9 Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Fri, 24 Jun 2016 02:10:13 +0300 Subject: [PATCH] Fix Travis build --- spec/period_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/period_spec.rb b/spec/period_spec.rb index ea3e7dd..c7441b4 100644 --- a/spec/period_spec.rb +++ b/spec/period_spec.rb @@ -61,14 +61,14 @@ describe Crono::Period do time = 10.minutes.ago at = [time.hour, time.min].join(':') @period = Crono::Period.new(2.days, at: at) - expect(@period.next).to be_eql(2.days.from_now.change(hour: time.hour, min: time.min)) + expect(@period.next.to_s).to be_eql(2.days.from_now.change(hour: time.hour, min: time.min).to_s) end it "should set time to 'at' time as a hash" do time = 10.minutes.ago at = { hour: time.hour, min: time.min } @period = Crono::Period.new(2.days, at: at) - expect(@period.next).to be_eql(2.days.from_now.change(at)) + expect(@period.next.to_s).to be_eql(2.days.from_now.change(at).to_s) end it "should raise error when 'at' is wrong" do