cartodb-4.42/spec/support/factories/client_applications.rb

14 lines
365 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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