Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Mar 15, 2024
1 parent 599d5db commit 5ae6048
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions spec/controllers/skills_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
"title" => "UpdatedSkill", "radar" => "adopt", "portfolio" => "passiv", "default_set" => false,
"category_id" => categories(:ruby).id} }

describe 'CRUD operaions' do

before(:each) do
sign_in auth_users(:admin), scope: :auth_user
end




it 'index returns all skills ' do
get :index
Expand All @@ -28,10 +27,9 @@
end

it 'should switch category' do
patch :update, params: {id: edited_skill["id"], skill: edited_skill, validate_only: true}
expect(response.body).to have_select("skill_category_id", with_options: ['Linux-Engineering'])
end

patch :update, params: {id: edited_skill["id"], skill: edited_skill, validate_only: true}
expect(response.body).to have_select("skill_category_id", with_options: ['Linux-Engineering'])
end
it 'post returns all skills ' do
title = 'new skill'
category_id = categories(:java).id
Expand Down

0 comments on commit 5ae6048

Please sign in to comment.