Sha256: 7e1c728b5db8760f66feefbe4ce29415b3ed0b58225c7f02cc669e14309901a8

Contents?: true

Size: 203 Bytes

Versions: 1

Compression:

Stored size: 203 Bytes

Contents

module UnitHelper
  def create_unit(opts={})
    opts['name'] ||= FleetAPI::Mock.random_name
    client.units.create(opts)['unit']
  end
end

RSpec.configure do |config|
  config.include(UnitHelper)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coreos-fleet-api-0.1.0 spec/support/unit.rb