Fix identity and user retrieval when special characters are used
Fixes #4023 (closed)
I also added tests to make sure the user with special characters in his name is returned correctly.
@rspeicher this probably should be added to 8.3 as a patch.
Merge request reports
Activity
mentioned in issue #4245 (closed)
42 53 end 43 54 end 44 55 56 describe :find_by_uid_and_provider do 57 it 'retrieves the correct user' do 58 user = special_chars_user.save - Since these
special_*
values are only used in this test, let's move them from thelet
s directly into the body of the test and avoid [mystery guests](http://xunitpatterns.com/Obscure%20Test.html#Mystery Guest). - Once they're inlined, break up the testing phases with newlines.
- I know you were matching the style of the other tests, but we should avoid
describe
-ing symbols. Since it's a class method it should bedescribe '.find_by_uid_and_provider'
.
Edited by Robert Speicher- Since these
We don't have a standard for this right now, and certainly have leaned heavily on
let
s in the past, but my current preference here would be having everything the test uses defined within the context of the test. And since this is a single test case and there's no reusing of the variables, I thinklet
s are overkill here.
Added 1 commit:
- 1d3889eb - Fix identity and user retrieval when special characters are used
@patricio I think that looks much better.
Me too. I hope @DouweM can review this tomorrow on his morning, so that we can get in on the patch for our morning.
Added 1 commit:
- 662aa8ec - No mb_chars needed anymore
Enabled an automatic merge when the build for 662aa8ec succeeds
@patricio Looks good. I made one last change and enabled an automatic merge.
mentioned in commit 835333c4
mentioned in commit e9a2ab11