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.
7 lines
122 B
Ruby
7 lines
122 B
Ruby
FactoryGirl.define do
|
|
factory :language do
|
|
code "en"
|
|
english_name "English"
|
|
native_name "English"
|
|
end
|
|
end
|