2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00
discourse/plugins/poll
Robin Ward ef7d99b0a8 REFACTOR: Move test setup to a module
This is long overdue. We had a lot of (not linted) code to initialize
our test suite as part of the Ruby `test_helper.js` bundle.

This refactor moves that out to a `setup-tests` module, which imports
all the modules properly, rather than using `require`.

It also removes the global `server` variable which some tests were using
for pretender. Those tests are fixed, and in the case of widget tests,
support for a `pretend()` was added, which mimics our acceptance tests.

One problematic test was removed, which overwrites `/posts` - this could
break tons of other tests depending on order.
2020-10-08 15:11:51 -04:00
..
app FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00
assets REVERT: revert change from action + mut to mut (#10844) 2020-10-06 23:50:05 +02:00
config Update translations 2020-10-06 15:43:13 +02:00
db FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00
jobs/regular DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
lib FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00
spec FIX: Handle poll titles when headings are present (#10832) 2020-10-06 13:24:38 +02:00
test/javascripts REFACTOR: Move test setup to a module 2020-10-08 15:11:51 -04:00
plugin.rb FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00