Carsten Otto
cd09cce7a4
when recurring todos always use midnight for "show from"
...
fixes #1940
2015-12-13 15:44:40 +01:00
Reinier Balt
0602634ae3
Fasterer: Use #cover? instead of #include? on ranges
2015-08-19 15:42:14 +02:00
Matt Rogers
a9023960fc
Merge pull request #1848 from C-Otto/tracks-1847
...
Fix description of monthly recurring tests
2015-08-07 20:29:40 -04:00
Reinier Balt
e58379e81f
This fixes failing tests when the timezone is different than utc
...
There were several problems:
* Time.now returns the systems time, not the users time
* fixtures do not translate dates from timezone to utc, but stores the
date verbatim
* calling a controller will set the timezone to the preference of the
current_user. So it could be changed while you do not realize this. I
fixed the failing test, but problems could be elsewhere
2015-08-05 11:50:33 +02:00
Carsten Otto
72f7513650
fix #1847
2015-05-09 19:21:01 +02:00
Dan Rice
1dbef179a7
Revert breaking commits
...
This reverts the following commits:
319d4b00cd
403cc1015e
37485013a0
d08ffb3806
2015-04-14 23:28:18 -04:00
Reinier Balt
d08ffb3806
do not compare at_midnight in different timezones.
...
Use localtime to make sure both dates are in the
same timezone
2015-04-13 15:35:09 +02:00
Carsten Otto
dfe8735c0d
rename repeating -> recurring, repeat -> recurrence
2015-02-10 16:25:27 +01:00
Carsten Otto
d480569629
occurence -> occurrence
2015-02-10 15:49:13 +01:00
Matteo Giaccone
0d6e0efcee
Fix warnings for Ruby 2.2 update
2015-01-01 13:43:48 -05:00
Matt Rogers
aa41e20e46
Remove trailing whitespace and tabs
2014-08-14 21:05:05 -05:00
Reinier Balt
ee3ba62152
fix #1712 . Number of occurrences was not handled correctly
2014-08-06 14:40:30 +02:00
Reinier Balt
cb8aba80ca
fix #1462
...
I do not understand why this works for daily but not for weekly repeating todos
2014-07-01 22:38:23 +02:00
Dan Rice
9b92306252
Return a valid RecurringTodo after creation error
...
Fixes #1463
2014-06-19 01:17:15 -04:00
Reinier Balt
0839765e7b
smaal refactoring and improvement of date handling in test
2014-03-31 11:22:23 +02:00
Reinier Balt
ed039d4c4a
small refactorings and add some tests
2014-03-31 11:09:00 +02:00
Reinier Balt
3cb18cd875
move tests from recurring_todo_test to respective repeat_pattern_tests
2014-03-31 09:43:39 +02:00
Reinier Balt
0c153ef28c
improve test of daily repeat pattern
2014-03-31 09:43:39 +02:00
Reinier Balt
b84adfc172
move recurrence text helpers into patterns. move next_date calculation into
...
respective models
2014-03-31 09:43:39 +02:00
Reinier Balt
d8507bf8b7
move as_text helpers to respective pattern
2014-03-31 09:43:39 +02:00
Reinier Balt
cbdbb792a5
add basis tests for patterns and remove doubles from recurring_todo_test.rb
2014-03-31 09:43:39 +02:00
Reinier Balt
5de96d7eda
add some more tests
2014-03-31 09:43:39 +02:00
Reinier Balt
b23338eaa2
fix updating of recurring todo and create a form helper for filling the recurring todo edit
...
form
2014-03-31 09:43:39 +02:00
Reinier Balt
59a29c664a
move form specific accessors out of model
2014-03-31 09:43:39 +02:00
Reinier Balt
bad91e8d10
make validations a bit more dry
2014-03-31 09:43:39 +02:00
Reinier Balt
29b815e998
move model validation into pattern classes and link from recurring_todo model
2014-03-31 09:43:39 +02:00
Reinier Balt
776a046465
move mapping of form attributes to model attributes from pattern to builder to make
...
pattern independent of form
2014-03-31 09:43:39 +02:00
Reinier Balt
c2c67f1640
use new model to handle updating of recurring todos
2014-03-31 09:43:39 +02:00
Reinier Balt
00af159be7
remove unused code and refactor builder to remove duplication
2014-03-31 09:43:39 +02:00
Reinier Balt
78c07d52b7
Start major refactoring of recurring_todos. Started with creating new recurring todos.
...
All current and new tests pass
2014-03-31 09:43:39 +02:00