Skip to content

Commit

Permalink
fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitri-d committed Apr 3, 2013
1 parent e68a5fd commit 55efe71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/lib/url_constrained_cookie_store_test.rb
Expand Up @@ -10,6 +10,7 @@
# have received a copy of GPLv2 along with this software; if not, see # have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.


require 'securerandom'
require 'time' require 'time'
require 'minitest_helper' require 'minitest_helper'
require File.expand_path('../../../lib/katello/url_constrained_cookie_store', __FILE__) require File.expand_path('../../../lib/katello/url_constrained_cookie_store', __FILE__)
Expand All @@ -20,7 +21,7 @@ class UrlConstrainedCookieStoreTest < ActionController::IntegrationTest


Verifier = ActiveSupport::MessageVerifier.new(SessionSecret, 'SHA1') Verifier = ActiveSupport::MessageVerifier.new(SessionSecret, 'SHA1')
SignedBar = Verifier.generate(:foo => "bar", :created_at => (Time.now - 2.minute), SignedBar = Verifier.generate(:foo => "bar", :created_at => (Time.now - 2.minute),
:session_id => ActiveSupport::SecureRandom.hex(16)) :session_id => SecureRandom.hex(16))


def test_doesnt_update_expiraton_date_for_excluded_urls def test_doesnt_update_expiraton_date_for_excluded_urls
with_test_route_set(:expire_after => 1.minute, :expiration_exceptions => "/no_expiration") do with_test_route_set(:expire_after => 1.minute, :expiration_exceptions => "/no_expiration") do
Expand Down

0 comments on commit 55efe71

Please sign in to comment.