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-5.0.0 lib/stitches/spec/api_clients.rb
stitches-5.0.0.RC1 lib/stitches/spec/api_clients.rb
stitches-4.2.2 lib/stitches/spec/api_clients.rb
stitches-4.2.1 lib/stitches/spec/api_clients.rb
stitches-4.2.0 lib/stitches/spec/api_clients.rb
stitches-4.2.0.RC3 lib/stitches/spec/api_clients.rb
stitches-4.2.0.RC2 lib/stitches/spec/api_clients.rb
stitches-4.2.0.RC1 lib/stitches/spec/api_clients.rb
stitches-4.0.2 lib/stitches/spec/api_clients.rb
stitches-4.1.0RC2 lib/stitches/spec/api_clients.rb
stitches-4.0.1 lib/stitches/spec/api_clients.rb
stitches-4.0.0 lib/stitches/spec/api_clients.rb
stitches-4.0.0.RC1 lib/stitches/spec/api_clients.rb
stitches-3.8.3 lib/stitches/spec/api_clients.rb
stitches-3.8.2 lib/stitches/spec/api_clients.rb
stitches-3.8.1 lib/stitches/spec/api_clients.rb
stitches-3.8.0 lib/stitches/spec/api_clients.rb
stitches-3.7.3 lib/stitches/spec/api_clients.rb
stitches-3.7.2 lib/stitches/spec/api_clients.rb
stitches-3.7.0 lib/stitches/spec/api_clients.rb