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
1e02e42665
FGified view/plantings tests
2013-01-13 12:49:30 +11:00
Skud
0972429087
Turned a contains into an assert_select. This is better.
2013-01-13 12:33:47 +11:00
Skud
8b0fa9e050
FGified garden tests. Removed some spurious bits.
2013-01-13 12:17:06 +11:00
Skud
988d2c67c0
FGified and slightly improved updates tests
2013-01-13 12:08:02 +11:00
Skud
7aac659749
FGified and generally improved members/show tests
2013-01-13 11:38:54 +11:00
Skud
8b44b97c7e
This doesn't need a confirmed user, just a basic one.
2013-01-13 11:37:13 +11:00
Skud
007c7e5fae
FGified views/members/index
...
Note that all users need different email addresses otherwise you get
"email address is already taken" problems if you try to create two at
once.
2013-01-13 11:15:07 +11:00
Skud
b1277d4132
FGified user model tests
2013-01-13 11:05:55 +11:00
gnattery
a3de3ddbb2
Removed some stuff hanging around from previous experiments
2013-01-11 13:35:49 +11:00
gnattery
74a11c5554
Factory-girl-ified the scientific name tests
2013-01-11 13:15:39 +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
46fd6953ac
factory-girl-ified the views/crops tests
2013-01-11 11:39:50 +11:00
Skud
fe24802790
added factorygirl, using it for one test so far
2013-01-11 11:01:34 +11:00
pozorvlak
42683d733b
Merge pull request #72 from gnattery/unconfirmed
...
Unconfirmed
2012-12-28 07:26:43 -08:00
pozorvlak
898b41d656
Merge pull request #74 from Skud/plantsomething
...
Plantsomething
2012-12-22 15:29:41 -08:00
Skud
dd301d1777
improved crop/garden pre-selection in planting form
2012-12-23 10:20:51 +11:00
Skud
02daab4fc1
added crop_id and garden_id params to controller
2012-12-23 10:01:19 +11:00
pozorvlak
e5e3bfa93a
Merge pull request #71 from pozorvlak/creategarden
...
Links and forms to create new gardens
2012-12-21 06:09:29 -08:00
Skud
626fc55f37
render markdown in planting descriptions
2012-12-21 13:45:22 +11:00
Skud
bf2b1d6596
select garden/crop based on params - BROKEN TESTSwq
2012-12-21 13:32:32 +11:00
Skud
f9394291ff
show plant something link on garden page
2012-12-21 12:51:30 +11:00
Skud
f3e624dd8d
crops page links to planting the right crop
2012-12-21 12:45:16 +11:00
Skud
d6d7892513
Plant something link in header
2012-12-21 12:27:46 +11:00
Gnat
20df5538ca
No profile for unconfirmed members
2012-12-21 01:00:56 +00:00
Gnat
183dc71b76
Unconfirmed users don't show on members index page
2012-12-21 00:30:01 +00:00
Miles Gould
75eb0ab02f
Fix garden tabs in profile; embed "new garden" form.
2012-12-20 12:13:58 +00:00
Juliet
c5b606e9d6
Adding new garden; updating new garden page to ask only for garden name. Story
...
40983821 https://www.pivotaltracker.com/projects/646869#!/stories/40983821
Committing test for changes
2012-12-20 12:13:58 +00:00
Skud
4168aec523
removed extraneous h2
2012-12-19 21:34:30 +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
60db9e2e05
only the owner can edit their plantings
2012-12-19 14:47:39 +11:00
Skud
69b7a14c79
prettified garden display, showed names instead of ids
2012-12-19 14:28:58 +11:00
Skud
1711305ee8
Made the form prettier using Bootstrap's horizontal form css
2012-12-19 14:14:41 +11:00
Skud
47790b36a4
Added dropdowns for garden and crop.
2012-12-19 13:56:29 +11:00
Skud
0af986021e
Generated scaffold for plantings
2012-12-19 13:30:40 +11:00
Skud
c0cdfdfb86
Merge pull request #68 from pozorvlak/friendly_updates
...
Include username and date in update slugs
2012-12-17 15:36:14 -08: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
Gnat
d6f55f9b0b
Wrote some tests for Skud's gravatar code
2012-12-17 03:40:16 +00:00
Miles Gould
b02eced9b7
Include dates in update URLs.
...
/update/:slug still works, though.
2012-12-15 00:18:53 +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
cephLpod
5a81e90005
Added update counts to Updates page
2012-12-14 16:16:33 -06:00
cephLpod
2f36e9a0cc
Added member count to Members page
2012-12-14 16:11:37 -06:00
cephLpod
8790c0a2b0
Added crop count to Crops page
2012-12-14 16:07:29 -06: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