Skud
cf7c092220
FGified models/garden tests.
...
Also tweaked slug generation to be lowercase, and avoid spaces in slugs.
This probably needs more work to handle unusual characters, but I
punted on that for now.
2013-01-13 12:58:26 +11:00
Skud
ecd9cc19fc
FGified models/planting tests
2013-01-13 12:52:57 +11:00
Skud
8b44b97c7e
This doesn't need a confirmed user, just a basic one.
2013-01-13 11:37:13 +11:00
Skud
b1277d4132
FGified user model tests
2013-01-13 11:05:55 +11:00
gnattery
de49c6499a
Added model tests for scientific names
2013-01-11 12:12:41 +11:00
Skud
e854858971
factory-girl-ified models/crop tests
2013-01-11 11:41:51 +11:00
Skud
5f13567dd1
Added stringification for crops
...
to prevent plantings from having to know too much about the crop model
2012-12-19 21:31:17 +11:00
Skud
0b75494c50
added owner for gardens, and to_s for users
2012-12-19 21:08:32 +11:00
Skud
785aa8b178
Added accessor for 'owner'
2012-12-19 20:52:00 +11:00
Skud
f0b0b79906
made the plantings/ page look less crap
2012-12-19 15:45:57 +11:00
Skud
0af986021e
Generated scaffold for plantings
2012-12-19 13:30:40 +11:00
Miles Gould
1fc2170a10
Fix Y10K bug in update tests, at @zoeimogen's insistence.
...
See https://twitter.com/zoeimogen/status/280699989674577921
2012-12-17 17:05:31 +00:00
Miles Gould
febd78d77a
Use username-yyyymmdd-subject-line slugs.
2012-12-17 12:50:51 +00:00
Miles Gould
d2de7bc6f2
Add slugs to updates.
...
- add column to Update table
- add a slug to all old updates
- use slugs in URLs
- make update slugs unique (we'll need them for delete URLs)
2012-12-15 00:18:46 +00:00
Miles Gould
bf58ff22a6
Give each user a default garden, called "Garden"
...
- created by an after_create callback on the user object
- added test on model object
- changed test of GET /gardens to expect Garden.all
2012-12-11 15:50:28 +00:00
Miles Gould
c3940969c9
Remove "pending" tests
...
Most we deleted, because we couldn't think of any interesting tests to
write.
We added a test for the garden_slug method of Garden.
2012-12-11 00:53:39 +00:00
Skud
59083882d6
Merging in changes from dev to mygarden branch
2012-12-05 21:05:40 +11:00
Skud
91e24e4ac2
fixed broken tests
2012-11-26 22:36:50 +11:00
Skud
08302a4864
Randomly display 8 crops on the garden page
2012-11-26 21:34:23 +11:00
Skud
760cf03b2c
Fixed tests by getting rid of valid_session
2012-11-26 19:04:43 +11:00
Norman Ancajas
f89815b6b3
added gardens table
2012-11-05 11:45:56 +08:00
Skud
3b72a9ed17
Set up friendly IDs for crops aka slugs (eww!)
2012-10-27 15:08:30 +11:00
Miles Gould
3419a559e1
Require a system name for crops.
2012-10-03 20:38:39 +01:00
Miles Gould
1d9c1b14fc
Generate scaffold for Crops; refactor tests
...
Add link to Crops page from index
Refactored index/application tests to better reflect where things are.
2012-10-02 11:32:56 +01:00