Skip to content

Commit

Permalink
Remove unneeded test after force_ssl removal
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed May 5, 2020
1 parent 03351cd commit bd87b37
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions railties/test/application/configuration_test.rb
Expand Up @@ -2121,25 +2121,6 @@ class D < C
assert_equal :default, Rails.configuration.debug_exception_response_format
end

test "controller force_ssl declaration can be used even if session_store is disabled" do
make_basic_app do |application|
application.config.session_store :disabled
end

class ::OmgController < ActionController::Base
force_ssl

def index
render plain: "Yay! You're on Rails!"
end
end

get "/"

assert_equal 301, last_response.status
assert_equal "https://example.org/", last_response.location
end

test "ActiveRecord::Base.has_many_inversing is true by default for new apps" do
app "development"

Expand Down

0 comments on commit bd87b37

Please sign in to comment.