Sha256: 80b16ce6d12bdd395a6b64d552caa96c2c116bcba304ef8792405425d3620cc3
Contents?: true
Size: 341 Bytes
Versions: 12
Compression:
Stored size: 341 Bytes
Contents
require "mtwarden/testing_support/factories/user_factory" FactoryGirl.define do factory :account, :class => Mtwarden::Account do sequence(:name) { |n| "Test Account ##{n}" } sequence(:subdomain) { |n| "test#{n}" } association :owner, :factory => :user after(:create) do |account| account.users << account.owner end end end
Version data entries
12 entries across 12 versions & 1 rubygems