Go to file
Krzysztof Kotlarek ab66d70fdd
FIX: flaky order in spec (#16)
In Spec we were creating two topics:
```ruby
  fab!(:topic) { Fabricate(:topic, category: category) }
  fab!(:topic2) { Fabricate(:topic, category: category) }
```

Because we didn't set title explicitly it was using sequence from Fabricator
```ruby
  title { sequence(:title) { |i| "This is a test topic #{i}" } }
```

If you have two titles `This is a test topic 9` and `This is a test topic 10` Spec testing if topics are sorted will fail. Therefore, we should explicitly set topic title when creating test instances to avoid that randomness.
2020-11-05 14:48:02 +11:00
.github/workflows DEV: Update CI workflows 2020-10-14 16:27:49 +00:00
app FIX: Topics not always properly shown (#11) 2020-10-13 10:32:22 -05:00
assets FIX: Filters did not reset when visiting route (#14) 2020-11-04 12:02:05 -06:00
config FEATURE: Add clear button to search bar 2020-10-06 12:08:28 -05:00
lib FIX: Sort query was ambiguous (#15) 2020-11-04 16:46:55 -06:00
spec/requests FIX: flaky order in spec (#16) 2020-11-05 14:48:02 +11:00
.eslintrc DEV: apply coding standards (#9) 2020-09-04 13:22:46 +02:00
.gitignore DEV: apply coding standards (#9) 2020-09-04 13:22:46 +02:00
.rubocop-https---raw-githubusercontent-com-discourse-discourse-master--rubocop-yml FEATURE: Swap to raw for topic list (#6) 2020-06-12 12:55:10 -05:00
.rubocop.yml DEV: apply coding standards (#9) 2020-09-04 13:22:46 +02:00
.template-lintrc.js DEV: apply coding standards (#9) 2020-09-04 13:22:46 +02:00
Gemfile FEATURE: Add onebox metadata (#10) 2020-10-01 09:32:28 -05:00
Gemfile.lock FEATURE: Add onebox metadata (#10) 2020-10-01 09:32:28 -05:00
package.json DEV: linting 2020-09-22 17:12:39 +02:00
plugin.rb Add plugin URL 2020-05-12 16:13:51 -04:00
yarn.lock DEV: linting 2020-09-22 17:12:39 +02:00