Sha256: 754b08a5bf49f3a7f1629133c1a9c673753c37d54ea9a21805d9d7f5a823472a

Contents?: true

Size: 485 Bytes

Versions: 10

Compression:

Stored size: 485 Bytes

Contents

FactoryGirl.define do
  factory :repository_action, class: Arpa::Repositories::Actions::RepositoryAction do

    trait :index do
      name 'index'
      resource { FactoryGirl.create(:repository_resource, :user) }
    end

    trait :show do
      name 'show'
      resource { FactoryGirl.create(:repository_resource, :user) }
    end

    trait :with_complete_association do
      name 'index_new'
      resource { FactoryGirl.create(:repository_resource, :user) }
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arpa-0.2.0 spec/factories/repository_actions.rb
arpa-0.1.0 spec/factories/repository_actions.rb
arpa-0.0.9 spec/factories/repository_actions.rb
arpa-0.0.8 spec/factories/repository_actions.rb
arpa-0.0.7 spec/factories/repository_actions.rb
arpa-0.0.6 spec/factories/repository_actions.rb
arpa-0.0.5 spec/factories/repository_actions.rb
arpa-0.0.4 spec/factories/repository_actions.rb
arpa-0.0.3 spec/factories/repository_actions.rb
arpa-0.0.2 spec/factories/repository_actions.rb