Sha256: a2059548d9fd794aae91e18cfaca4088a1e8633b0f843871859d6309d8008573
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper.rb' class HelpersTest < ActiveSupport::TestCase class HelpersContext def form_authenticity_token 'foo' end def u(something) something end include AuthlogicRpx::Helper end must "generate a return url with an authenticity token" do assert_true HelpersContext.new.send(:build_token_url!, :return_url => '/').include?('/?authenticity_token=') end must "not repeat ? when params exist" do assert_equal 1, HelpersContext.new.send(:build_token_url!, :return_url => '/?myparam=bar').count('?') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Empact-authlogic_rpx-2.0.0 | test/unit/helpers_test.rb |
Empact-authlogic_rpx-1.1.8 | test/unit/helpers_test.rb |
Empact-authlogic_rpx-1.1.7 | test/unit/helpers_test.rb |