discourse/spec
Sam Saffron 716629dc0a
DEV: correct flaky test relying on possibly valid user id
This test lasted about 7 years prior to it becoming flaky.

Today ... for whatever reason the test suite created 100 users
prior to running this spec. So the new user becomes user id 101

And... lo and behold:

```

  1) PostSerializer a hidden post with add_raw enabled a hidden post shows the raw post only if authorized to see it
     Failure/Error: expect(serialized_post_for_user(Fabricate(:user))[:raw]).to eq(nil)

       expected: nil
            got: "Raw contents of the post."

       (compared using ==)
     # ./spec/serializers/post_serializer_spec.rb:127:in `block (4 levels) in <main>'
```
2020-06-09 17:40:41 +10:00
..
components UX: Add simple-list setting type (#9970) 2020-06-04 10:44:54 -04:00
fabricators FIX: Redirects containing Unicode usernames didn't work 2020-06-08 10:26:29 +02:00
fixtures FIX: Allow post migrations using `#change` to carry out unsafe migration 2020-05-15 14:23:27 +08:00
helpers DEV: Fix some more flaky tests (#9384) 2020-04-08 12:46:43 +02:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration FIX: If creating a flag for a watched word, include the reason 2020-06-02 11:49:02 -04:00
integrity DEV: Check English locale for errors in CI 2020-06-03 21:54:58 +02:00
jobs FIX: use `short_path` of flair upload to get signed url for secure media. 2020-06-05 07:43:15 +05:30
lib new S3 backup layout (#9830) 2020-05-29 00:28:23 +05:30
mailers DEV: Add rubocop-rspec (#9288) 2020-03-27 17:35:40 +01:00
models FIX: Redirects containing Unicode usernames didn't work 2020-06-08 10:26:29 +02:00
multisite FIX: returns false if the upload url is an invalid mailto link (#9877) 2020-05-26 10:32:48 -03:00
requests DEV: Remove unused routes 2020-06-08 10:26:29 +02:00
script/import_scripts FIX: Change base importer to create new Bookmark records (#9603) 2020-05-01 11:34:55 +10:00
serializers DEV: correct flaky test relying on possibly valid user id 2020-06-09 17:40:41 +10:00
services FIX: Reply notifications should not appear as edited (#9965) 2020-06-08 15:23:33 +02:00
support FIX: Redirects containing Unicode usernames didn't work 2020-06-08 10:26:29 +02:00
tasks FEATURE: Add uploads:batch_migrate_from_s3 task to limit total posts migrated at once (#9933) 2020-06-04 09:48:11 +10:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Add pry-byebug and optionally require pry behind a ENV var for better spec debugging (#9984) 2020-06-05 12:30:34 +10:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00