Andy Allan
c365e2b28a
Convert the languages fixtures to a factory
...
For some tests, the existance of an 'en' language is assumed by
the database structure (not null default 'en'::character varying) so
this can be created in a setup block.
2016-10-26 13:14:52 +01:00
Tom Hughes
6a9b0f05b2
Load user and language fixtures for diary model tests
2016-10-19 12:17:20 +01:00
Andy Allan
191f6b3fcd
Build a diary entry more succinctly
2016-09-08 09:06:46 +01:00
Andy Allan
bb15077dcc
Assert there are no diary comments before creating one.
2016-09-08 09:06:26 +01:00
Andy Allan
3b3f328ae4
Rework DiaryEntry and DiaryComment model tests to use factories.
...
Since the database also contains fixtures from other tests, some
counts are dropped and instead tested for inclusion in the results.
2016-09-07 16:27:21 +01:00
Tom Hughes
15b550182c
Yet more tests...
2015-03-02 21:20:01 +00:00
Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
34e3e51456
Cleanup trailing whitespace
2015-02-20 08:56:16 +00:00
Tom Hughes
98184dfb9c
Reorganise tests to match modern rails test layout
2014-02-26 00:13:19 +00:00