Matt Rogers
883ea2b968
Move Project#create_from_todo to its own class
...
The point of this is to keep as many things out of the ActiveRecord
objects as possible and use them as just a thin database abstraction
layer.
2013-05-02 22:30:24 -05:00
Matt Rogers
98b188d1df
Add tests for the ICS and XML views and fix them up
2013-04-30 20:38:10 -05:00
Matt Rogers
d1ff0daf6f
Move the calendar to its own controller
2013-04-30 20:09:46 -05:00
Matt Rogers
1c2de3fd5a
Remove codejunk
...
Extra whitespace, explicit returns, and an extra begin/end pair are all
gone.
2013-04-29 21:01:21 -05:00
Reinier Balt
010d0e9ba0
refactor creating todos in todos_controller
2013-04-29 15:15:48 +02:00
Reinier Balt
5ed69fc1a2
update gems and fix failures from new aasm
...
I'm not sure the test failures caused by reload not working are caused by the new aasm,
perhaps the thread isolation is causing that...
2013-04-29 11:53:32 +02:00
Matt Rogers
8db5793bf6
Merge pull request #178 from TracksApp/rename-has-next-todo
...
Rename RecurringTodo#has_next_todo
2013-04-27 09:52:58 -07:00
Matt Rogers
6b8e745234
Use Todos::Calendar in the view
2013-04-26 23:23:56 -05:00
Matt Rogers
84e49c451c
add a test for the TodosController#calendar
2013-04-26 23:07:49 -05:00
Matt Rogers
f0d71bdfbb
Remove extra whitespace
2013-04-26 22:30:40 -05:00
Matt Rogers
c4bcc0996f
Remove extra whitespace
2013-04-26 16:30:40 -05:00
Matt Rogers
88e7798db6
Rename RecurringTodo#has_next_todo to continues_recurring?
...
This clarifies the intent of the method.
2013-04-26 16:30:12 -05:00
Matt Rogers
036c34f266
Rename RecurringTodo#inc_occurences to increment_occurrences
...
This clarifies the method name and fixes a typo.
2013-04-26 16:20:42 -05:00
Reinier Balt
67247980ad
fix failing tests
2013-04-11 11:04:07 +02:00
Dan Rice
59989d3127
Merge remote-tracking branch 'upstream/master'
2013-03-19 16:47:20 -04:00
Dan Rice
66a84e0b71
Fix error running functional tests under Ruby 2.0.0
2013-03-19 16:43:06 -04:00
Katrina Owen
a4ae0c03bf
Fix failing tests
2013-03-18 21:54:19 -06:00
Katrina Owen
a690e4a4cd
Extract methods in pie chart data model
2013-03-18 19:57:42 -06:00
Katrina Owen
961227da0c
Extract pie chart data logic into model layer
...
Move most of the tests for this logic into the unit test layer.
2013-03-18 19:49:54 -06:00
Matt Rogers
0cd6656be2
Merge pull request #175 from kytrinyx/pie-chart-bug
...
Add heavy-handed tests against pie chart bug
2013-03-18 06:41:38 -07:00
Katrina Owen
4fe9003855
Tweak pie chart data tests
2013-03-18 07:25:00 -06:00
Reinier Balt
22b371ef8c
do a big refactor of rendering collections of todos for home page, tag page, project page, context page
2013-03-18 12:36:40 +01:00
Katrina Owen
d6ed7d9722
Add heavy-handed tests against pie chart bug
2013-03-17 19:20:48 -06:00
Dan Rice
dc311221f1
Render notes using RedCloth without formatize
...
Removes the outdated bluecloth dependency
2013-03-13 17:03:58 +02:00
Matt Rogers
053e3fc8d6
Guard against the case days stale can be negative
2013-03-10 22:48:27 -05:00
Matt Rogers
c1c81d7653
Remove some of the time objects we no longer need
2013-03-10 13:55:21 -05:00
Matt Rogers
809154332f
Remove the fake preferences object
...
It's no longer needed since we're not using the preferences in this
object anymore.
2013-03-10 13:47:26 -05:00
Matt Rogers
43275e064e
Refactor the calculation for staleness
...
Provide the number of days that the todo was stale instead of a class
name to use in the view.
We'll use the number of days stale in the helper to determine the class
name
2013-03-10 13:46:22 -05:00
Matt Rogers
8ffe3cacca
Move the fakes so that they're namespaced by the test
...
Prevents errors since the names clash with names used in other tests.
2013-03-09 22:38:38 -06:00
Matt Rogers
ccf5323588
Encapsulate the concept of staleness into its own class
...
Extract it from a single helper method and wrap it in a method object.
This lets us add tests around it and then (later) split the domain
concerns from the view concerns.
2013-03-09 22:38:38 -06:00
Katrina Owen
0b3a0b58a8
Refer to view values correctly in test
2013-03-05 07:48:08 -07:00
Matt Rogers
66827d0640
add test coverage for when we don't have any users
...
It wasn't being covered in the functional test for this controller.
2013-03-03 13:56:24 -06:00
Matt Rogers
7c5028f227
add the mocha stubbing and mocking library
2013-03-03 13:56:18 -06:00
Katrina Owen
e56fa5740a
Make test name reflect actual data
2013-03-02 16:20:57 -05:00
Katrina Owen
c4433a5ea9
Don't round in ttc.min_sec method
...
This fixes a bug where it would round 1.8 days up to
2 days, and still display the extra hours in addition.
2013-03-02 16:16:45 -05:00
Katrina Owen
03282638af
Move calculation out of view
2013-03-02 16:16:45 -05:00
Katrina Owen
62336f94cd
Move time to complete stats into separate class
...
This separates out the calculations from the queries so we can get
decent tests around them.
2013-03-02 16:16:45 -05:00
Reinier Balt
2719cb87c7
use state machine from controller and handle exception
2013-03-02 14:52:21 +01:00
Katrina Owen
3f496db4b4
Split up the font size calculation
...
The font size is a view concern, but the relative size belongs in the
model layer.
2013-03-02 07:14:52 -05:00
Matt Rogers
8b0f3e986a
Merge branch 'tag-cloud' of https://github.com/kytrinyx/tracks
2013-03-01 16:49:53 -06:00
Katrina Owen
a13199cdda
Add unit test for tag cloud
2013-03-01 16:03:35 -05:00
Katrina Owen
63fb7a589c
Add test for tag cloud query
2013-03-01 13:26:59 -05:00
Reinier Balt
acab98d4c7
fix failing tests
2013-03-01 16:22:29 +01:00
Reinier Balt
a5031f2069
add test for better unit coverage of project
2013-03-01 16:22:29 +01:00
Reinier Balt
bf3a1e653a
increate test coverage for user and project model
2013-03-01 16:22:29 +01:00
Reinier Balt
99eed9f638
add state machine to context including a closed state
2013-03-01 16:22:29 +01:00
Katrina Owen
ce9db80743
Correct typo in variable name
2013-02-28 20:34:46 -05:00
Reinier Balt
ef91dd0c64
another set of dynamic finder migrations. All non-cucumber tests pass
2013-02-27 11:50:49 +01:00
Reinier Balt
583664be36
remove some dynamic finders (they are deprecated for rails4) and add test for untested method of context.rb
2013-02-25 10:21:04 +01:00
Katrina Owen
0b733b6183
Override #to_s on Tag for simplified joining
2013-02-19 08:47:47 -07:00