Given a paper with one author
And another author called 'Peter Plagiarist'
When a user visits the paper's edit page
And then selects 'Peter Plagiarist' as author
And submits the form
Then 'Peter Plagiarist' and 'Alan Turing' should be authors of the paper
Hints
The paper controller must be able to deal with the additional author information that is passed by the new select element to save the changes.
Make sure that you have "permitted" the parameters for passing the author ids to the paper controller (function paper_params) using :author_ids => [].
Scenario
Given a paper with one author And another author called 'Peter Plagiarist' When a user visits the paper's edit page And then selects 'Peter Plagiarist' as author And submits the form Then 'Peter Plagiarist' and 'Alan Turing' should be authors of the paper
Hints
The paper controller must be able to deal with the additional author information that is passed by the new select element to save the changes. Make sure that you have "permitted" the parameters for passing the author ids to the paper controller (function
paper_params
) using:author_ids => []
.Error
42/44 exercise tests have passed