Skip to content

Commit

Permalink
Adjust ActionController::Parameters for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
TuckerJD committed Feb 13, 2017
1 parent 4cd01aa commit d553d53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/controllers/tagged_section_keywords_controller_spec.rb
Expand Up @@ -78,8 +78,7 @@

describe 'PUT update' do
describe 'with valid params' do
let(:update_params) { ActionController::Parameters.new({keyword: other_keyword})
.permit(:keyword_id) }
let(:update_params) { ActionController::Parameters.new({keyword_id: other_keyword.id.to_s}).permit(:keyword_id) }
it 'updates the requested tagged_section_keyword' do
tagged_section_keyword = TaggedSectionKeyword.create! valid_attributes
# Assuming there are no other tagged_section_keywords in the database, this
Expand Down

0 comments on commit d553d53

Please sign in to comment.