cartodb/spec/support/factories/access_tokens.rb

13 lines
275 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
module CartoDB
module Factories
def new_access_token(attributes = {})
attributes = attributes.dup
AccessToken.new(attributes)
end
def create_access_token(attributes = {})
token = new_access_token(attributes)
token.save
end
end
end