Skip to content

Commit

Permalink
specify exact controller in api/skillsController test
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Feb 23, 2024
1 parent bda2677 commit b4a212d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/api/skills_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down
10 changes: 0 additions & 10 deletions spec/controllers/skills_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -33,5 +24,4 @@
expect(response).to redirect_to(skills_path)
end
end
end
end

0 comments on commit b4a212d

Please sign in to comment.