Guo Xiang Tan
a849fae5ee
Add specs for polls ( #4246 )
...
* Extract validation logic into a service object.
* Extract logic for updating polls custom fields into a service object.
* Use `strip_heredoc` instead.
* FIX: Polls do not update when configuration has been changed.
2016-06-06 17:04:56 +02:00
Régis Hanol
d889f05480
changed default 'poll maximum options' to 20
2015-05-19 14:33:27 +02:00
Régis Hanol
43755a6fab
keep closed status when migrating poll to new style
2015-05-13 22:30:27 +02:00
Régis Hanol
06643fb625
add support for all types of unordered lists in migrate_old_polls
2015-05-13 22:10:02 +02:00
Régis Hanol
4df868a420
FIX: update 'migrate_old_polls' rake task to support more cases
...
FIX: support list that uses double newlines
FIX: support list that uses spaces before the '-'
FIX: don't break lamentably when a poll wasn't created
2015-05-13 19:56:09 +02:00
Régis Hanol
0ded6434df
FIX: migrate_old_polls should properly identify olds polls at the end of the post
2015-05-08 19:17:09 +02:00
Régis Hanol
9106331d4f
FIX: 'migrate_old_poll' rake task to support options with HTML
2015-05-01 15:53:02 +02:00
Régis Hanol
e9b70ac9cb
FIX: migrate old polls rake task
2015-04-30 17:08:44 +02:00
Régis Hanol
202b442b86
FEATURE: new 'poll:migrate_old_polls' rake task
2015-04-29 23:34:40 +02:00