From 71d0035a7e4488775822246daa078368b4b5823f Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 10 Apr 2018 13:47:07 +1000 Subject: [PATCH] groups should be text to match add_group etc. --- spec/controllers/session_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/session_controller_spec.rb b/spec/controllers/session_controller_spec.rb index e06d85a523b..b0840513006 100644 --- a/spec/controllers/session_controller_spec.rb +++ b/spec/controllers/session_controller_spec.rb @@ -333,7 +333,7 @@ describe SessionController do expect(sso2.external_id).to eq(@user.id.to_s) expect(sso2.admin).to eq(true) expect(sso2.moderator).to eq(false) - expect(sso2.groups).to eq(@user.groups.pluck(:name)) + expect(sso2.groups).to eq(@user.groups.pluck(:name).join(",")) end it "successfully redirects user to return_sso_url when the user is logged in" do