diff options
| author | Xinhui | 2017-08-22 16:01:56 +0200 |
|---|---|---|
| committer | Xinhui | 2017-08-22 16:01:56 +0200 |
| commit | e793bffd18b331f2db2bb567c479fdbf02c66aec (patch) | |
| tree | 7cb066eab3db23e68659fa365b42180a5becd2b0 /spec/support | |
| parent | 2df1767902996d43b56aa215bea15a033237b3ec (diff) | |
| download | chouette-core-e793bffd18b331f2db2bb567c479fdbf02c66aec.tar.bz2 | |
API - workbench imports controller
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/shared_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared_context.rb b/spec/support/shared_context.rb index 1282518c1..e7416f2f1 100644 --- a/spec/support/shared_context.rb +++ b/spec/support/shared_context.rb @@ -1,5 +1,5 @@ shared_context 'iboo authenticated api user' do - let(:api_key) { create(:api_key) } + let(:api_key) { create(:api_key, organisation: organisation) } before do request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(api_key.organisation.code, api_key.token) |
