Skip to content

Commit a129662

Browse files
committed
* Some travis builds were failing defining the hash with symbol keys as a parameter of .new()... so try being a bit more verbose with the hash definition.
1 parent 6c9c505 commit a129662

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/response_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,10 @@ class RubySamlTest < Minitest::Test
634634
it "returns true when the session has expired, but is still within the allowed_clock_drift" do
635635
drift = (Time.now - Time.parse("2010-11-19T21:57:37Z")) * 60 # minutes ago that this assertion expired
636636
drift += 10 # add a buffer of 10 minutes to make sure the test passes
637+
opts = {}
638+
opts[:allowed_clock_drift] = drift
637639

638-
response_with_drift = OneLogin::RubySaml::Response.new(response_document_without_recipient,
639-
{allowed_clock_drift: drift})
640+
response_with_drift = OneLogin::RubySaml::Response.new(response_document_without_recipient, opts)
640641
response_with_drift.settings = settings
641642
assert response_with_drift.send(:validate_session_expiration)
642643
assert_empty response_with_drift.errors

0 commit comments

Comments
 (0)