diff --git a/spec/controllers/api/skills_controller_spec.rb b/spec/controllers/api/skills_controller_spec.rb index 06ea34bfb..0b14c3928 100644 --- a/spec/controllers/api/skills_controller_spec.rb +++ b/spec/controllers/api/skills_controller_spec.rb @@ -5,7 +5,7 @@ before { load_pictures } before(:each) do - allow_any_instance_of(SkillsController).to receive(:admin_flag?).and_return(true) + allow_any_instance_of(Api::SkillsController).to receive(:admin_flag?).and_return(true) end let(:bob) { people(:bob) } @@ -108,7 +108,7 @@ before { load_pictures } before(:each) do - allow_any_instance_of(SkillsController).to receive(:admin_flag?).and_return(false) + allow_any_instance_of(Api::SkillsController).to receive(:admin_flag?).and_return(false) end let(:bob) { people(:bob) } diff --git a/spec/controllers/skills_controller_spec.rb b/spec/controllers/skills_controller_spec.rb index 07b8f214c..d910a04ea 100644 --- a/spec/controllers/skills_controller_spec.rb +++ b/spec/controllers/skills_controller_spec.rb @@ -1,15 +1,6 @@ require 'rails_helper' describe SkillsController do - describe 'SkillsController as user' do - before { load_pictures } - - # before(:each) do - # allow_any_instance_of(SkillsController).to receive(:admin_flag?).and_return(true) - # end - - let(:bob) { people(:bob) } - describe 'CRUD operaions' do it 'index returns all skills ' do get :index @@ -33,5 +24,4 @@ expect(response).to redirect_to(skills_path) end end - end end