module ApiClients

Public Instance Methods

api_client(options = { name: "test" }) click to toggle source
# 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