Sha256: 952033d971dec3ff2472fc02bf1459fa04e395b8755b5511494ba773558719f3

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

# Fabricates test manifests (.omnitest.yaml files)

Fabricator(:project, from: Omnitest::Project) do
  initialize_with { @_klass.new to_hash } # Hash based initialization
  language { LANGUAGES.sample }
  name do |attr|
    "my_#{attr[:language]}_project"
  end
  basedir do |attr|
    "sdks/#{attr[:name]}"
  end
end

Fabricator(:project_set, from: Omnitest::ProjectSet) do
  initialize_with { @_klass.new to_hash } # Hash based initialization
  projects do
    Fabricate(:project)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnitest-0.2.2 spec/fabricators/project_fabricator.rb
omnitest-0.2.1 spec/fabricators/project_fabricator.rb