Carsten Otto
b788194f8d
fix test
2015-12-13 16:12:45 +01: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
47d0364dbd
fix test
...
every_other3 encodes 1:first to 4:fourth and 5:last weekday of month
every_other2 encodes every nth month
2015-05-10 14:11:08 +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
37485013a0
discard time in these tests since they are
...
irrelevant here
2015-04-13 15:43:32 +02:00
Matteo Giaccone
ed9063bffa
Fix #1722
2015-02-22 18:54:24 +00: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
Carsten Otto
bef79d135a
fix test error message
2015-02-09 23:24:19 +01:00
Matteo Giaccone
0d6e0efcee
Fix warnings for Ruby 2.2 update
2015-01-01 13:43:48 -05:00
Reinier Balt
ee3ba62152
fix #1712 . Number of occurrences was not handled correctly
2014-08-06 14:40:30 +02:00
Dan Rice
2386e67dec
Simplify requiring of test helpers
2014-05-16 18:03:13 -04:00
Dan Rice
d0cec167a8
Replace Timecop with new ActiveSupport helpers
2014-05-16 13:25:22 -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
a9fa955c33
move daily test to daily pattern test
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
cbdbb792a5
add basis tests for patterns and remove doubles from recurring_todo_test.rb
2014-03-31 09:43:39 +02:00
Reinier Balt
a7807a4b66
dry form_helper using meta programming.
...
not sure if this improves readability, but codeclimate should be happier...
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
59a29c664a
move form specific accessors out of 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
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