• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mysociety / alaveteli / 7004
38%

Build:
DEFAULT BRANCH: develop
Ran 08 Aug 2017 09:05AM UTC
Jobs 4
Files 247
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
7004

push

travis-ci

garethrees
<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">&quot;&gt;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 &amp;quot;(Account suspended)&amp;quot; suffix so
when updating user account details via a form, the supplied params
include &amp;quot;Name (Account suspended)&amp;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

Jobs
ID Job ID Ran Files Coverage
1 7004.1 (1.9.3) 08 Aug 2017 09:12AM UTC 0
93.03
Travis Job 7004.1
2 7004.2 (2.0.0) 08 Aug 2017 09:07AM UTC 0
93.0
Travis Job 7004.2
3 7004.3 (2.1.5) 08 Aug 2017 09:06AM UTC 0
93.0
Travis Job 7004.3
4 7004.4 (2.3.0) 08 Aug 2017 09:05AM UTC 0
92.98
Travis Job 7004.4
Source Files on build 7004
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7004
  • 5f45fff0 on github
  • Prev Build on develop (#6985)
  • Next Build on develop (#7013)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc