diff options
| author | Xinhui | 2017-08-17 15:47:55 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-08-17 16:03:13 +0200 | 
| commit | 24862b2b1baa94c80fd7206bfe2244019604dbf5 (patch) | |
| tree | 5f6905f8b76287f061f7ba98258d0ad43fa11bf9 /spec/support/api_key.rb | |
| parent | 27d0fc5da357c6ba7b7b3288399c7934c30265f2 (diff) | |
| download | chouette-core-24862b2b1baa94c80fd7206bfe2244019604dbf5.tar.bz2 | |
Model ApiKey add belongs_to organisation
Diffstat (limited to 'spec/support/api_key.rb')
| -rw-r--r-- | spec/support/api_key.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/spec/support/api_key.rb b/spec/support/api_key.rb index 561e1f796..5aaa31217 100644 --- a/spec/support/api_key.rb +++ b/spec/support/api_key.rb @@ -5,7 +5,7 @@ module ApiKeyHelper    end    def get_api_key -    Api::V1::ApiKey.first_or_create( :referential_id => referential.id, :name => "test") +    Api::V1::ApiKey.first_or_create(referential: referential, organisation: organisation)    end    def config_formatted_request_with_authorization( format)      request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Token.encode_credentials( get_api_key.token) | 
