Sha256: ea65e0c8d8e632bb9cc37d684b94521c7e6d41b5c19e458e261492249968f039

Contents?: true

Size: 175 Bytes

Versions: 29

Compression:

Stored size: 175 Bytes

Contents

module ApiClients
  def api_client(options = { name: "test" })
    ::ApiClient.where(name: options[:name]).first or ::ApiClient.create!(name: options[:name]).reload
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
stitches-3.6.1 lib/stitches/spec/api_clients.rb
stitches-3.6.0 lib/stitches/spec/api_clients.rb
stitches-3.6.0.RC1 lib/stitches/spec/api_clients.rb
stitches-3.5.0 lib/stitches/spec/api_clients.rb
stitches-3.4.0 lib/stitches/spec/api_clients.rb
stitches-3.3.0 lib/stitches/spec/api_clients.rb
stitches-3.2.3 lib/stitches/spec/api_clients.rb
stitches-3.2.2 lib/stitches/spec/api_clients.rb
stitches-3.2.1 lib/stitches/spec/api_clients.rb