Sha256: 84cdecacb264d24f609255542bbf665b66e218fa94ebf6684101f67b612facfa

Contents?: true

Size: 330 Bytes

Versions: 17

Compression:

Stored size: 330 Bytes

Contents

FactoryGirl.define do
  factory :user do
    password    "password"
    password_confirmation "password"

    sequence(:email) { |n| "john-#{n}@example.com" }

    before(:create) do |user, evaluator|
      FactoryGirl.create(:email_template, slug: :after_create_user)
    end
  end

  factory :admin, parent: :user do
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
effective_email_templates-0.6.1 spec/factories/user.rb
effective_email_templates-0.6.0 spec/factories/user.rb
effective_email_templates-0.5.1 spec/factories/user.rb
effective_email_templates-0.5.0 spec/factories/user.rb
effective_email_templates-0.4.6 spec/factories/user.rb
effective_email_templates-0.4.5 spec/factories/user.rb
effective_email_templates-0.4.4 spec/factories/user.rb
effective_email_templates-0.4.3 spec/factories/user.rb
effective_email_templates-0.4.2 spec/factories/user.rb
effective_email_templates-0.4.1 spec/factories/user.rb
effective_email_templates-0.4.0 spec/factories/user.rb
effective_email_templates-0.3.5 spec/factories/user.rb
effective_email_templates-0.3.4 spec/factories/user.rb
effective_email_templates-0.3.3 spec/factories/user.rb
effective_email_templates-0.3.1 spec/factories/user.rb
effective_email_templates-0.3.0 spec/factories/user.rb
effective_email_templates-0.2.8 spec/factories/user.rb