Skip to content

Commit eda380a

Browse files
authored
DEV: Add spec compatibility with upcoming changes (#133)
This change is needed so the plugin will work with discourse/discourse#35009.
1 parent fc7b874 commit eda380a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/integration/saml_staged_user_handling_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
expect(response.status).to eq(302)
2424
expect(response.location).to eq("http://test.localhost/")
25-
expect(session[:authentication]).to include(username: staged.username, email: staged.email)
25+
expect(server_session[:authentication] || session[:authentication]).to include(
26+
username: staged.username,
27+
email: staged.email,
28+
)
2629
expect(JSON.parse(cookies[:authentication_data])["username"]).to eq(staged.username)
2730

2831
post "/u.json", params: { name: staged.name, username: staged.username, email: staged.email }

0 commit comments

Comments
 (0)