Sha256: 4ad93e3956cbd568df67bc37a1e6b5c77daa46c50220f85fcb6e953eee9eb10a

Contents?: true

Size: 602 Bytes

Versions: 30

Compression:

Stored size: 602 Bytes

Contents

# Read about factories at https://github.com/thoughtbot/factory_girl

# This is an API resource factory generating a Hash to be used in API stubs
# Use as such: build(:api_user)
# See http://stackoverflow.com/questions/10032760/how-to-define-an-array-hash-in-factory-girl
FactoryGirl.define do
  
  factory :deletion_request, class: MnoEnterprise::DeletionRequest do
    sequence(:id)
    sequence(:token) { |n| "1dfg567fda44f87ds89F7DS8#{n}" }
    status 'pending'

    # Properly build the resource with Her
    initialize_with { new(attributes).tap { |e| e.clear_attribute_changes! } }
  end
  
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.1.4 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.0.7 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-2.0.9 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.1.3 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.0.6 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-2.0.8 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.1.2 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.0.5 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-2.0.7 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-2.0.6 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-2.0.5 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.1.1 lib/mno_enterprise/testing_support/factories/deletion_request.rb
mno-enterprise-core-3.0.4 lib/mno_enterprise/testing_support/factories/deletion_request.rb