|
Ran
|
Jobs
4
|
Files
247
|
Run time
6min
|
Badge
README BADGES
|
push
travis-ci
<a href="https://github.com/mysociety/alaveteli/commit/<a class=hub.com/mysociety/alaveteli/commit/5f45fff0c02fd7c426f3239e249ba51a164f8043">5f45fff0c<a href="https://github.com/mysociety/alaveteli/commit/5f45fff0c02fd7c426f3239e249ba51a164f8043">">Override the user name param with the attribute value before update Fixes broken spec: ./spec/integration/admin_user_controller_edit_spec.rb:19 Since upgrading to Rails 4.2, the value for User#name for a banned user is always supplied with the &quot;(Account suspended)&quot; suffix so when updating user account details via a form, the supplied params include &quot;Name (Account suspended)&quot; which causes the name and url_name to be updated in the database. The change that caused this is https://github.com/rails/rails/commit/</a><a class="double-link" href="https://github.com/mysociety/alaveteli/commit/<a class="double-link" href="https://github.com/mysociety/alaveteli/commit/3e74db6361cf61434fa47f44fcbccf50ce02bad8">3e74db636</a>">3e74db636</a><a href="https://github.com/mysociety/alaveteli/commit/5f45fff0c02fd7c426f3239e249ba51a164f8043">. At the point of rendering the form `value_came_from_user?(object)` returns `false` so we end up with the suffix applied.
10044 of 10807 relevant lines covered (92.94%)
2511.81 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 7004.1 (1.9.3) | 0 |
93.03 |
Travis Job 7004.1 | |
| 2 | 7004.2 (2.0.0) | 0 |
93.0 |
Travis Job 7004.2 | |
| 3 | 7004.3 (2.1.5) | 0 |
93.0 |
Travis Job 7004.3 | |
| 4 | 7004.4 (2.3.0) | 0 |
92.98 |
Travis Job 7004.4 |