module Stormpath::Test::ApiKeyHelpers

Public Instance Methods

fixture(file) click to toggle source
   # File spec/support/api_key_helpers.rb
29 def fixture(file)
30   File.new(fixture_path + '/' + file)
31 end
fixture_path() click to toggle source
   # File spec/support/api_key_helpers.rb
25 def fixture_path
26   File.expand_path('../../fixtures/response', __FILE__)
27 end
get_cache_data(href) click to toggle source
   # File spec/support/api_key_helpers.rb
20 def get_cache_data(href)
21   data_store = test_api_client.send :data_store
22   data_store.send :cache_for, href
23 end
test_api_client() click to toggle source
   # File spec/support/api_key_helpers.rb
16 def test_api_client
17   @test_api_client ||= Stormpath::Client.new(api_key: test_api_key)
18 end
test_api_key() click to toggle source
   # File spec/support/api_key_helpers.rb
12 def test_api_key
13   Stormpath::ApiKey.new(test_api_key_id, test_api_key_secret)
14 end
test_api_key_id() click to toggle source
  # File spec/support/api_key_helpers.rb
4 def test_api_key_id
5   ENV['STORMPATH_CLIENT_APIKEY_ID'] || ENV['STORMPATH_SDK_TEST_API_KEY_ID']
6 end
test_api_key_secret() click to toggle source
   # File spec/support/api_key_helpers.rb
 8 def test_api_key_secret
 9   ENV['STORMPATH_CLIENT_APIKEY_SECRET'] || ENV['STORMPATH_SDK_TEST_API_KEY_SECRET']
10 end