spec/authmac/timestamp_checker_spec.rb in authmac-1.0.0 vs spec/authmac/timestamp_checker_spec.rb in authmac-1.0.1

- old
+ new

@@ -3,17 +3,17 @@ module Authmac describe TimestampChecker do let(:checker) { TimestampChecker.new(15*60, 5*60) } it 'returns true if timestamp is recent' do - checker.validate(Time.now.to_i).should be_true + expect(checker.validate(Time.now.to_i)).to be_truthy end it 'returns false if timestamp is too old' do - checker.validate(Time.now.to_i - (15*60 + 1)).should be_false + expect(checker.validate(Time.now.to_i - (15*60 + 1))).to be_falsey end it 'returns false if timestamp is too far in the future' do - checker.validate(Time.now.to_i + (5*60 + 1)).should be_false + expect(checker.validate(Time.now.to_i + (5*60 + 1))).to be_falsey end end end \ No newline at end of file