Sha256: c79a2a7d196e433486a2ecc4201a9d409764358bcf4db08ae2c983b0a38aad70

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 Bytes

Contents

# -*- coding: utf-8 -*-
FactoryGirl.define do
  factory :translated_word, class: Translatable::TranslatedWord do
    translatable factory: :user
    key :first_name
    trait :en do
      locale :en
      value "John"
    end

    trait :ja do
      locale :ja
      value "ジョン"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ar-translatable-0.1.0 spec/factories/translated_word.rb
ar-translatable-0.0.2 spec/dummy/spec/factories/translated_word.rb
ar-translatable-0.0.1 spec/dummy/spec/factories/translated_word.rb