alphagov/whitehall — pull request #579 by tekin (2013-05-29 14:42:09+00:00)
Title: Allow mainstream categories to be removed.

Fixes bug reported here: https://www.pivotaltracker.com/story/show/40064585

Mainstream categories could not be deleted once set using the admin UI because the necessary params for the nested attributes was not being set by the controller.

This makes me think that both the `"update should remove all related topics if none specified"` and `"update should remove all related mainstream categories if none specified"` tests are giving us false confidence - both of them test that the associations are removed when the ids are posted directly, but the UI uses the nested attributes form, so real requests will not look like this. I'm already looking to overhaul a lot of these tests in another story (https://www.pivotaltracker.com/story/show/48860985), this might be a good opportunity to look at how we can balance our coverage better between our functional tests and our cucumber features.