Skip to content

@deepak /force_ssl_test.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
test for force_ssl
class ForceSSLWithExtraOptions < ForceSSLController
force_ssl :only => :cheeseburger, :port => 4000, :status => :temporary_redirect
end
class ForceSSLWithExtraOptionsTest < ActionController::TestCase
tests ForceSSLWithExtraOptions
def test_cheeseburger_redirects_and_calls_force_ssl_redirect
@controller.expects(:force_ssl_redirect).with(nil, {port: 4000, status: :temporary_redirect})
get :cheeseburger
end
end
@deepak
Owner

the other tests break. should i create another test file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.