Skip to content

Commit 14fbdfb

Browse files
committed
Remove test for activerecord-session_store
Since 27285e7 the special case for this gem was removed from the codebase. So changed this test to be about where we expect to find the session stores.
1 parent fd81dd6 commit 14fbdfb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

railties/test/application/configuration_test.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,13 +1760,15 @@ def index
17601760
assert app.config.colorize_logging
17611761
end
17621762

1763-
test "config.session_store with :active_record_store with activerecord-session_store gem" do
1764-
make_basic_app do |application|
1765-
ActionDispatch::Session::ActiveRecordStore = Class.new(ActionDispatch::Session::CookieStore)
1766-
application.config.session_store :active_record_store
1763+
test "config.session_store with custom custom stores search for it inside the ActionDispatch::Session namespace" do
1764+
assert_nothing_raised do
1765+
make_basic_app do |application|
1766+
ActionDispatch::Session::MyCustomStore = Class.new(ActionDispatch::Session::CookieStore)
1767+
application.config.session_store :my_custom_store
1768+
end
17671769
end
17681770
ensure
1769-
ActionDispatch::Session.send :remove_const, :ActiveRecordStore
1771+
ActionDispatch::Session.send :remove_const, :MyCustomStore
17701772
end
17711773

17721774
test "config.session_store with unknown store raises helpful error" do

0 commit comments

Comments
 (0)