Add position/view related attributes to widget as accessible attributes and protect data such as template and name. Under Rail 4.2, saving the dashboard was failing due to attribute protection, so new functional tests cover the whole controller.
Related issues
Bug #14253: Saving dashboard widget positions fails under Rails 4.2
fixes #14253 - add attr_accessible to Widget
Add position/view related attributes to widget as accessible attributes
and protect data such as template and name. Under Rail 4.2, saving the
dashboard was failing due to attribute protection, so new functional
tests cover the whole controller.