Skip to content

Commit

Permalink
Add a test that create() caches submittable collections
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed Apr 18, 2024
1 parent 1de8001 commit 2334235
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/controllers/sessions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ class SessionsControllerTest < ActionDispatch::IntegrationTest
skip
end

test "create() caches submittable collections" do
user = users(:southwest)
post "/auth/identity/callback", params: {
auth_key: user.email,
password: "password"
}, xhr: true
assert_equal 1, enqueued_jobs.
select{ |j| j['job_class'] == "CacheSubmittableCollectionsJob" }.count
end

# destroy()

test "destroy() redirects to the root URL in a globally-scoped context" do
Expand Down

0 comments on commit 2334235

Please sign in to comment.