cartodb-4.42/spec/support/factories/client_applications.rb
2024-04-06 05:25:13 +00:00

14 lines
365 B
Ruby

module CartoDB
module Factories
def new_client_application(attributes = {})
attributes = attributes.dup
attributes[:user] ||= create_user
ClientApplication.new(attributes)
end
def create_client_application(attributes = {})
client_application = new_client_application(attributes)
client_application.save
end
end
end