Skud
2b6bdeda16
Merge branch 'dev' of https://github.com/Growstuff/growstuff into dev
...
Conflicts:
spec/views/crops/show.html.haml_spec.rb
2013-07-23 19:35:31 +10:00
Skud
610b100f7f
seed page: cleaned up views/tests for location
2013-07-18 23:54:51 +10:00
Ryan Clark
269162c759
Tidied up seed views and added location stuff
2013-07-17 19:37:35 -07:00
Ryan Clark
21a0590114
Add tradable attributes to seed views
2013-07-17 18:59:32 -07:00
Ryan Clark
e9dd18d977
Added tradable and tradable_to to seeds
2013-07-17 18:25:55 -07:00
Ryan Clark
973567bfdc
Remane use_by to plant_before to humor Skud
2013-07-17 18:24:12 -07:00
Skud
491e97c997
connected seeds into other parts of the site
2013-07-15 23:29:14 +10:00
Skud
cc711a0a48
prettified seed-related views
2013-07-15 22:53:30 +10:00
Skud
91ea5146ac
rails g scaffold seed...
2013-07-15 22:53:29 +10:00
Miles Gould
c4f4f4f7ef
Show planted_from frequencies on crop page.
2013-07-11 13:08:01 +01:00
Miles Gould
4d9ddd2707
Crop: method to return hash of planted_from frequencies
...
Also tidied up tests which relied on the default planting factory having
a planted_from value set.
2013-07-11 13:01:52 +01:00
Miles Gould
744b526dd1
Show sunniness frequencies on crop page
...
Also cleaned up tests that were relying on the default planting factory
to have a sunniness value set.
2013-07-11 12:41:22 +01:00
Miles Gould
fbc64a1ee2
Crop: method to return hash of sunniness values.
2013-07-11 12:13:38 +01:00
Skud
7801a7ec09
Merge branch 'dev' into staff
2013-07-09 10:05:37 +10:00
Skud
c2be06e68f
Fixed failing timestamp test on postgres
2013-07-08 13:28:59 +10:00
Skud
923f01cd72
cleaned up boring controller tests
2013-07-08 13:24:26 +10:00
Skud
1ff2211c0f
removed boring tests from controllers
...
the tests generated by 'rails g scaffold...' are boring and brittle.
they don't actually test anything other than the rails framework, and
they were causing us all kinds of trouble. we've started to blow them
away (and raised a PT chore to remove them from other controllers in due
course).
2013-07-08 13:09:37 +10:00
Skud
ec80b01c7a
cleaning up tests on postgres
...
- still trying to make sure we explicitly use a real member, not just
assume there's one with id = 1
- also it looks like the tests for post activity are passing for obscure
reasons on sqlite when they shouldn't be. this is a known bug
(https://www.pivotaltracker.com/story/show/51280861 ) apparently
invisible to us under sqlite.
2013-07-08 12:18:51 +10:00
Skud
0508837303
Can't assume we have a member with id = 1
...
this works on sqlite but not on postgres (which we now test on, on
travis)
2013-07-08 12:00:45 +10:00
Skud
878af07419
gave up on not_staff, shuffling interesting members instead
2013-07-08 11:54:55 +10:00
pozorvlak
f16999c3bd
Merge pull request #246 from Skud/older-photos
...
view/select older flickr photos
2013-07-05 08:52:25 -07:00
Skud
db16ad34f7
view/select older flickr photos
2013-07-05 22:07:55 +10:00
Skud
902b82a295
display planted_from on planting page
2013-07-05 21:09:21 +10:00
Skud
1689d7fdb1
added planted_from to planting form
2013-07-05 20:57:14 +10:00
Skud
b71ac3decb
added planted_from (eg seed, seedling)
2013-07-05 20:53:11 +10:00
Skud
e4dd0f98e8
Merge pull request #243 from lucymclaughlin/forex_link
...
Forex link
2013-07-04 01:28:40 -07:00
Lucy
778d7a68c3
Fix bug in order total; add conversion link to order show.
...
The old order total method did not account for quantities. The
view test for order totals was not catching this, so we've
strengthened it. We also added a conversion link to the order
summary page and created an additional test to check that orders
with more than one item were generating the correct total.
2013-07-03 14:10:37 +01:00
Lucy
e674a6572e
Added conversion links for recommended prices.
...
The paragraphs were getting a bit verbose so we shortened the link
text as well. Added an additional test to make sure the link is
working here too.
2013-07-03 13:22:07 +01:00
Lucy
5c92bb04d3
Updated the foreign exchange link to use configured currency.
2013-07-03 13:04:43 +01:00
Lucy
67c457dfcd
Modified the foreign exchange link to convert the right price.
...
Changed the forex site to Wolfram Alpha from XE, which allow us
to convert the right number of AUD with one click. Upated tests to
reflect this change.
2013-07-03 12:59:49 +01:00
Lucy
80ed2179e2
Proof of concept for adding a foreign exchange link to the shop.
...
Added a function that returns a link for a foreign exchange site
and showed it on the Shop page. Also included a test to make sure
it works.
2013-07-03 12:50:56 +01:00
Lucy
9ce85e2f73
Updated tests to test for the default account type.
...
Tests used to check that the default account type was always "Free".
Now that we have a default account type as a config variable, the
tests test to see the default account type matches the value of that
variable.
2013-07-03 11:17:18 +01:00
Lucy
1b0a708b04
Documented reason for using south_pole_member in tests.
2013-07-03 10:51:55 +01:00
Miles Gould
2d8128e54d
Slightly simplify tests for not_staff scope.
...
There's no reason to set a location on the test member.
2013-06-26 10:55:19 +01:00
Miles Gould
d26dd4499c
Deleted unused admin_helper_spec.rb
2013-06-26 10:55:19 +01:00
Miles Gould
8dceb985a1
Fix pending tests in views/shop/index.
...
We needed to stub out current_member, not current_user.
2013-06-26 10:55:19 +01:00
Miles Gould
5bcd4c2edd
Use ActiveRecord methods for not_staff join code.
...
- set member.account_type directly in tests, because changes to
member.account.account_type weren't being persisted.
2013-06-26 10:55:19 +01:00
Miles Gould
0a8aaf0ee6
Create free account type if it doesn't exist; fix tests.
2013-06-26 10:55:19 +01:00
Lucy
6ccf8f397f
Give new users a free account.
2013-06-26 10:55:18 +01:00
Miles Gould
c6eb835771
Tests and sketch implementation of not_staff scope.
...
It doesn't work and we don't yet know why :-(
2013-06-26 10:55:18 +01:00
Lucy
3ce246ef5a
Allowing Miles to drive.
2013-06-26 10:55:18 +01:00
pozorvlak
5748c0989e
Merge pull request #233 from Skud/planted-at-bug
...
Planted at bug
2013-06-23 07:43:52 -07:00
Miles Gould
1f5c81fdca
Filter spec files out of coverage reports.
2013-06-13 20:38:26 +01:00
Miles Gould
033703e9b9
Set up Rails coverage groups.
2013-06-13 20:29:02 +01:00
Miles Gould
66a6f53ae7
Set up Coveralls integration for test coverage.
2013-06-12 13:03:05 +01:00
Skud
2ecbd8315d
bugfix: don't say 'not yet set' in planting form
...
PT: https://www.pivotaltracker.com/story/show/51457917
Maco found this. The problem was that if you had a blank planting date,
and then re-edited the planting, it would say "not yet set" in the form
field, then die when it later tried to convert that to a date.
I replaced Miles's planted_at_string stuff in the model with a simpler
parse_date method in the application helper.
2013-06-11 16:08:02 +10:00
Skud
df60a7c4dc
display recommended price on product admin pages
2013-06-07 11:36:03 +10:00
Skud
cb3e0fb526
added optional recommended price to products
2013-06-07 09:53:40 +10:00
Skud
8046790bc7
converted product description to text (not string)
2013-06-07 09:16:18 +10:00
Skud
4c2971f670
oops, fixed broken test for checkout button
2013-06-06 21:19:24 +10:00