openstreetmap-website/test/factories/languages.rb
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

7 lines
122 B
Ruby

FactoryGirl.define do
factory :language do
code "en"
english_name "English"
native_name "English"
end
end