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