diff options
| author | Xinhui | 2017-08-22 15:33:43 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-08-22 15:33:43 +0200 | 
| commit | 2df1767902996d43b56aa215bea15a033237b3ec (patch) | |
| tree | 7c6d5ca60daa14e1d7cec46a4e3886c751dfb99e /spec/controllers/api/v1 | |
| parent | 7c0d5f726634531e489db59695cb16df353ea975 (diff) | |
| download | chouette-core-2df1767902996d43b56aa215bea15a033237b3ec.tar.bz2 | |
Rspec api iboo controller
Diffstat (limited to 'spec/controllers/api/v1')
| -rw-r--r-- | spec/controllers/api/v1/iboo_controller_spec.rb | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/spec/controllers/api/v1/iboo_controller_spec.rb b/spec/controllers/api/v1/iboo_controller_spec.rb index 92b70711e..64a929d1a 100644 --- a/spec/controllers/api/v1/iboo_controller_spec.rb +++ b/spec/controllers/api/v1/iboo_controller_spec.rb @@ -1,5 +1,12 @@  require 'rails_helper'  RSpec.describe Api::V1::IbooController, type: :controller do +  context '#authenticate' do +    include_context 'iboo authenticated api user' +    it 'should set current organisation' do +      controller.send(:authenticate) +      expect(assigns(:current_organisation)).to eq api_key.organisation +    end +  end  end | 
