]> git.openstreetmap.org Git - rails.git/commit
Convert the languages fixtures to a factory
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 26 Oct 2016 12:14:52 +0000 (13:14 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 26 Oct 2016 12:14:52 +0000 (13:14 +0100)
commitc365e2b28ac47e27b8cbbaca27fde59dedafdbca
tree4d661c79d480b20617cdd29f188928be7fd19793
parent7725cd59b41a622a634a447d33fbda738a472748
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.
test/controllers/diary_entry_controller_test.rb
test/factories/languages.rb [new file with mode: 0644]
test/fixtures/languages.yml [deleted file]
test/models/diary_comment_test.rb
test/models/diary_entry_test.rb
test/models/language_test.rb
test/models/user_test.rb