spec/unit/session_serialisation_spec.rb in gds-sso-12.1.0 vs spec/unit/session_serialisation_spec.rb in gds-sso-13.0.0

- old
+ new

@@ -24,10 +24,10 @@ expect(result).to eq([1234, Time.now.utc.iso8601]) expect(result.last).to be_a(String) end it "should return nil if the user has no uid" do - @user.stub(:uid).and_return(nil) + allow(@user).to receive(:uid).and_return(nil) result = @serializer.serialize(@user) expect(result).to be_nil end end