055310cea4
DEV: Apply syntax_tree formatting to plugins/*
2023-01-07 11:11:37 +00:00
3eaac56797
DEV: Use proper wording for contexts in specs
2022-08-04 11:05:02 +02:00
493d437e79
Add RSpec 4 compatibility ( #17652 )
...
* Remove outdated option
04078317ba
* Use the non-globally exposed RSpec syntax
https://github.com/rspec/rspec-core/pull/2803
* Use the non-globally exposed RSpec syntax, cont
https://github.com/rspec/rspec-core/pull/2803
* Comply to strict predicate matchers
See:
- https://github.com/rspec/rspec-expectations/pull/1195
- https://github.com/rspec/rspec-expectations/pull/1196
- https://github.com/rspec/rspec-expectations/pull/1277
2022-07-28 10:27:38 +08:00
1d0faedfbc
FIX: Validate number of votes allowed per poll per user. ( #15001 )
...
* DEV: Remove spec that we no longer need.
As far as we know, the migration has been successful for a number of
years.
* FIX: Validate number of votes allowed per poll per user.
2021-11-19 09:50:08 +08:00
6a143030f8
FEATURE: Allow users to remove their vote ( #14459 )
...
They can use the remove vote button or select the same option again for
single choice polls.
This commit refactor the plugin to properly organize code and make it
easier to follow.
2021-10-05 11:38:49 +03:00
781e3f5e10
DEV: Use response.parsed_body
in specs ( #9615 )
...
Most of it was autofixed with rubocop-discourse 2.1.1.
2020-05-07 17:04:12 +02:00
b92a8131c0
FEATURE: Pie chart option for poll results ( #8352 )
2019-11-25 11:51:01 -06:00
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
4459665dee
REFACTOR: use tables instead of custom fields for polls ( #6359 )
...
Co-authored-by: Guo Xiang Tan <tgx_world@hotmail.com >
2018-11-19 14:50:00 +01:00
7e3543d96f
correct plugin specs
2018-01-12 14:42:05 +11:00
77d4c4d8dc
Fix all the errors to get our tests green on Rails 5.1.
2017-09-25 13:48:58 +08:00
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
93e5112dfa
correct poll specs
2017-07-18 14:31:22 -04:00
8bd8f07ce0
FIX: Public polls should not make a request per option.
2017-01-31 17:27:43 +08:00
a36203ff78
PERF: Paginate public polls.
2016-06-12 16:14:53 +08:00