1 2 3 4 5 6
# Read about factories at http://github.com/thoughtbot/factory_girl Factory.define :language do |f| f.name 'Deutsch' f.code 'de' end