Sha256: 32b65107298a2828aaacd5b1ee9dfdb91a0104a162f018062e59df8f873450ed
Contents?: true
Size: 631 Bytes
Versions: 22
Compression:
Stored size: 631 Bytes
Contents
TEST_API_URI = URI('http://localhost:3000').freeze TEST_API_V3_URI = URI('http://localhost:3000/locomotive/api/v3').freeze TEST_SITE_API_V3_URI = URI('http://localhost:3000/locomotive/sample/api/v3').freeze TEST_API_EMAIL = 'admin@locomotivecms.com' TEST_API_CREDENTIALS = { email: TEST_API_EMAIL, password: 'locomotive' }.freeze TEST_API_CREDENTIALS_WITH_KEY = { email: TEST_API_EMAIL, api_key: 'd49cd50f6f0d2b163f48fc73cb249f0244c37074' }.freeze def api_token(uri = nil, credentials = nil) Locomotive::Coal::Resources::Token.new(uri || TEST_API_V3_URI, credentials || TEST_API_CREDENTIALS.dup).get end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms_coal-1.0.0.pre.alpha.3 | spec/support/api_settings.rb |
locomotivecms_coal-1.0.0.pre.alpha.2 | spec/support/api_settings.rb |