Created
August 7, 2011 15:58
-
-
Save ksob/1130484 to your computer and use it in GitHub Desktop.
rails/actionpack/test/controller/url_for_test.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_without_protocol | |
add_host! | |
assert_equal('//www.basecamphq.com/c/a/i', | |
W.new.url_for(:controller => 'c', :action => 'a', :id => 'i', :protocol => '//') | |
) | |
assert_equal('//www.basecamphq.com/c/a/i', | |
W.new.url_for(:controller => 'c', :action => 'a', :id => 'i', :protocol => false) | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment