Brenda Wallace
a6cc530fe5
Updating specs to use same owner for garden and planting
2017-11-18 00:43:17 +13:00
Brenda Wallace
809dd81378
"Changed last_harvest" to "days_to_last_harvest"
2017-11-08 17:17:58 +13:00
Brenda Wallace
62beec23a1
"Changed first_harvest" to "days_to_first_harvest"
2017-11-08 17:17:15 +13:00
Brenda Wallace
470aacd1c9
Fixed %w for an array of words
2017-11-06 09:11:27 +13:00
Brenda Wallace
eaa65fda9e
update median_last_harvest too, with specs
2017-11-05 20:28:51 +13:00
Brenda Wallace
6c33c335d8
Default ordering for harvests are gone, so order it in spec
2017-11-05 19:26:50 +13:00
Brenda Wallace
26537943e3
Removed pending spec
2017-11-05 18:00:49 +13:00
Brenda Wallace
9b1b22afa8
Bugfix and specs for first and last harvest
2017-11-05 17:33:58 +13:00
Brenda Wallace
996706ee78
Tests for planting lifespan predictions when there's no crop data
2017-11-05 17:29:42 +13:00
Brenda Wallace
eb585611fe
Fixed spec to call update_lifespan_medians
2017-11-05 14:05:54 +13:00
Brenda Wallace
f2fac9db1b
Time.zone.local
2017-11-04 11:39:53 +13:00
Brenda Wallace
20fe9e4cc5
Merge remote-tracking branch 'upstream/dev' into feature/harvest-predictions
2017-11-04 10:09:53 +13:00
Logan Gingerich
fa600bea9e
changed spec to reflect factorybot change
2017-11-03 14:53:20 +13:00
Logan Gingerich
99e7fb1f7d
Name added to contributors and spec added
2017-11-03 14:53:20 +13:00
Logan Gingerich
10a8df47a9
Factorygirl to factorybot - fixes #1413 ( #1425 )
...
* FactoryGirl Changed to FactoryBot
file fix
changes based on comments received
Bundle Update on 2017-10-29
style update to align hash literal
added package-lock
* indentation fixes with rubocop
* name added to contributors
2017-11-01 15:03:31 +00:00
Brenda Wallace
92fa09a1d3
Mark harvest predictions as pending
2017-11-01 13:57:49 +13:00
Brenda Wallace
9ef40532ad
removed old percentage grow specs
2017-11-01 13:57:49 +13:00
Brenda Wallace
70ba8c8421
Updating planting model specs, for predictions
2017-11-01 13:57:49 +13:00
Brenda Wallace
7d6c49d8c3
Set harvest preductions on plantings
2017-11-01 13:57:49 +13:00
Brenda Wallace
78aa049502
Fixed comment model spec
2017-10-23 10:44:37 +01:00
Brenda Wallace
97c7277a73
fixed up ambigous regex and use of expect in specs
2017-10-23 10:44:37 +01:00
Brenda Wallace
46efcf3e61
Spec for Forum owners and Crop creators deleting their accounts
2017-06-09 23:25:40 +12:00
Brenda Wallace
910a9673dc
Unsubscribes newsletter before member destroying
2017-06-09 22:39:07 +12:00
Brenda Wallace
582dd2c9fd
Checks the deleted members are not found
2017-06-09 21:28:47 +12:00
Shiny
7621da7041
Merge branch 'dev' into issue-1044-account-deletion
2017-05-30 20:39:44 +12:00
Brenda Wallace
ff1c835cda
Moving the planting predictions to own service
2017-05-29 22:45:14 +12:00
Brenda Wallace
a6964a8f4e
Update specs to join before checking member is destroyed.
2017-05-21 21:59:28 +12:00
Brenda Wallace
121d3d99fe
Tests for retrieving data of deleted members
2017-05-21 11:36:07 +12:00
Brenda Wallace
7d2a2b96a2
Only show gardens of members who are not deleted
2017-05-21 11:17:09 +12:00
Brenda Wallace
6f58f266a6
Moving has_photos scope to PhotoCapable
...
-
2017-05-20 15:46:37 +12:00
Brenda Wallace
42cea2ebde
Fixed spec for days_before_maturity
2017-04-28 20:48:25 +12:00
Brenda Wallace
4ea681984f
Call calc_and_set_days_before_maturity from controller
2017-04-28 20:48:25 +12:00
Brenda Wallace
b820615081
Moved planting maturity to planting model. simplified controller
2017-04-28 20:48:25 +12:00
Brenda Wallace
85a368999b
we love rubocop
2017-04-13 14:30:51 +12:00
Daniel O'Connor
6ba4b4560e
Fix #1305 by adding aggregation
...
Expand test coverage
member_id is owner_id on plantings
Argue with ActionView::Template::Error about what we can group on
Rename variable
2017-04-13 14:30:41 +12:00
Brenda Wallace
b8ea6116d4
Add photos to plantings to make them interesting in the spec
2017-03-29 10:46:15 +13:00
Brenda Wallace
2521e52d71
Remove test called to Planting.interesting(...)
...
Interesting plantings with no photos is not used in the code.
The method was converted to a scope.
2017-03-29 08:28:58 +13:00
Brenda Wallace
322f28eaa6
bugfix in some spec expectations
2017-03-05 00:36:10 +13:00
Brenda Wallace
4eda3a506b
Fix up csv importer, should make duplicates
...
Now matches the old functionality.
2017-02-24 20:08:01 +13:00
Brenda Wallace
5abc1fb80e
duplicate alt name spec (and adding to crop)
2017-02-23 15:35:29 +13:00
Brenda Wallace
0a840abc58
Added specs for duplicate sci names
2017-02-23 15:35:29 +13:00
Brenda Wallace
968e9bd3ad
Rubocop fix up in spec
2017-02-23 15:35:29 +13:00
Brenda Wallace
ddd0e0c285
Fixed typo in string causing spec to fail
2017-02-23 15:35:29 +13:00
Brenda Wallace
00952d5ef6
Updating more specs for new csv importer interface
2017-02-23 15:35:29 +13:00
Brenda Wallace
a0e1d8b11d
Update scientific name model spec
2017-02-23 15:35:29 +13:00
Brenda Wallace
3d7f2ec20c
Updating specs to match new csv importer
2017-02-23 15:35:29 +13:00
Brenda Wallace
2f9961651f
Call new csv importer from specs
2017-02-23 15:35:29 +13:00
Shiny
b8884beb2f
Merge branch 'dev' into test_runners
2017-02-21 11:31:02 +13:00
Brenda Wallace
50624fb2cb
Style/MultilineBlockLayout fix
2017-02-19 16:17:03 +13:00
Brenda Wallace
e184503caa
Fix up to match rubocop's MultilineMethodCallBraceLayout recommendation
2017-02-19 16:17:03 +13:00