Skip to content

Commit

Permalink
ensure that sign in/sign up links are over SSL
Browse files Browse the repository at this point in the history
these reasons for this test will become clear in a moment
  • Loading branch information
nathany authored and qrush committed Oct 10, 2010
1 parent dfbefc3 commit 9a947da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/home_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class HomeControllerTest < ActionController::TestCase
should "not redirect to the SSL path" do
assert_template 'index'
end

should "contain HTTPS links to sign in and sign up" do
assert_select "a[href=?]", new_session_url(:protocol => 'https')
assert_select "a[href=?]", new_user_url(:protocol => 'https')
end

end

context "on GET to index with a non-ssl request when signed in" do
Expand Down

0 comments on commit 9a947da

Please sign in to comment.