Searched refs:api_key (Results 1 - 6 of 6) sorted by relevance

/ontohub/spec/models/
H A Dapi_key_spec.rb4 let(:api_key) { create :api_key }
7 expect(api_key).to be_valid
11 let(:old_key) { create :api_key }
27 invalid_key = build(:api_key, key: api_key.key)
32 invalid_key = build(:api_key, user: nil)
37 invalid_key = build(:api_key, state: 'nice state')
/ontohub/app/controllers/api/v1/
H A Dbase.rb4 API_KEY_SYMBOL = :api_key
14 ApiKey.valid.where(key: api_key).first.try(:user) if api_key
17 def api_key method in class:Api
/ontohub/spec/factories/
H A Dapi_key_factory.rb2 factory :api_key, aliases: %i(valid_api_key) do
/ontohub/app/helpers/users/
H A Dregistrations_helper.rb2 def api_key method in class:Users
/ontohub/features/step_definitions/
H A Dcombination_steps.rb2 @api_key = FactoryGirl.create :api_key
3 @user = @api_key.user
7 @api_key = FactoryGirl.create :api_key, :invalid
8 @user = @api_key.user
35 header Api::V1::Base::API_KEY_HEADER, @api_key.try(:key)
46 header Api::V1::Base::API_KEY_HEADER, @api_key.try(:key)
H A Duser_steps.rb91 @api_key = ApiKey.create_new_key!(@user)
96 to eq(@api_key.key)
102 expect(key).to_not eq(@api_key.key)

Completed in 54 milliseconds