Commit Graph
26 Commits
Author SHA1 Message Date
Daniel O'Connor f1acb35520 Merge pull request #4537 from Growstuff/FactoryBot/SyntaxMethods
Rubocop: FactoryBot/SyntaxMethods
2026-04-23 22:29:24 +09:30
Brenda 7257b2ada1 Update with frozen literals 2020-01-10 16:50:52 +13:00
Awesome Code 490db7b342 Auto corrected by following Lint Ruby RSpec/HookArgument 2019-02-11 09:00:34 +13:00
Brenda Wallace 0c78791d01 Remove unnecesary whitesapce in specs 2018-12-30 13:22:42 +13:00
Brenda Wallace 918f73d0f0 Update crop edit spec 2018-10-16 14:29:01 +13:00
Brenda Wallace 3cc637017d Avoid {} for multiline 2017-12-06 14:29:21 +13:00
milesgould d8bf8ae4df De-deprecate controller and view specs
We deprecated controller and view specs on the grounds that they were
brittle, and were a poorer measure of user experience than feature
specs. However, feature specs have their own problems: they're much
slower to run, and flakier (see #901). We also ran into a few cases
where feature specs erroneously passed because they were checking for
the presence of a string that occurred in the error page!

Hence, we're cautiously un-deprecating controller and view specs.

Fixes #1132
2017-11-17 16:51:24 +00: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 62e7c716dd Removed extra empty blank lines 2016-11-26 12:06:02 +13:00
Brenda Wallace bdb057ca0f Removed all trailing white space 2016-11-14 15:05:32 +13:00
AELOGICA 134465d023 Fixed feature errors and removed failing deprecated tests 2015-07-17 07:31:53 +08:00
AELOGICA 734b57e395 Fixed feature test errors 2015-07-17 07:31:53 +08:00
Taylor Griffin 95974ab21b add deprecation not to all controller and view specs 2015-02-12 19:52:53 +11:00
Taylor Griffin cc31e864d5 update webrat and webrat matchers 2014-11-16 14:31:33 +11:00
Taylor Griffin 7fc886f43c implement custom Sweeper class as stop gap against errors when running specs 2014-11-16 12:01:27 +11:00
Skud 7184a0d5d5 Added scientific name field tests for edit form 2014-07-18 17:29:10 +10:00
Miles Gould 9c5b6f6192 Rename Crop.system_name to Crop.name 2013-10-18 11:52:05 +01:00
martyhines 098595721b Added crop creator to crop edit form 2013-08-20 21:46:22 -04:00
Skud 84a730ddcb limit crop wrangling to crop wranglers 2013-03-18 17:02:22 +11:00
Skud 87f14247e0 modified views to use CanCan 2013-02-01 13:24:32 +11:00
Skud edb59e07ee s/users/members/g -- all tests pass
There's still probably stuff broken, but this seemed like a good spot to
commit.  Sorry for the enormous chunk of code.  I was attempting to
update the views, but found that I needed to update a few things
elsewhere as well to make them work.
2013-01-13 18:33:43 +11:00
Skud 72bb1a641f Made the :user factory be confirmed by default.
We hardly ever actually need an unconfirmed user, but if we do, there is
now :unconfirmed_user for that purpose.
2013-01-13 13:10:24 +11:00
Skud 46fd6953ac factory-girl-ified the views/crops tests 2013-01-11 11:39:50 +11:00
Skud 6d7b04e734 Only logged in users can add/edit scientific names
Some small tweaks to crops tests along the way
2012-11-07 13:46:01 +11:00
Skud aa0ff3869e Need to be logged in to edit crops. 2012-10-02 22:15:56 +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