Module: ApiClients

Included in:
TestHeaders
Defined in:
lib/stitches/spec/api_clients.rb

Instance Method Summary collapse

Instance Method Details

#api_client(options = { name: "test" }) ⇒ Object



2
3
4
# File 'lib/stitches/spec/api_clients.rb', line 2

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