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

mysociety / alaveteli / 7004 / 3
38%
develop: 38%

Build:
DEFAULT BRANCH: develop
Ran 08 Aug 2017 09:06AM UTC
Files 247
Run time 26s
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

07 Aug 2017 08:56AM UTC coverage: 93.004% (+0.07%) from 92.935%
2.1.5

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.

9851 of 10592 relevant lines covered (93.0%)

638.3 hits per line

Source Files on job 7004.3 (2.1.5)
  • Tree
  • List 0
  • Changed 56
  • Source Changed 24
  • Coverage Changed 45
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7004
  • Travis Job 7004.3
  • 5f45fff0 on github
  • Prev Job for 2.1.5 on develop (#6985.3)
  • Next Job for 2.1.5 on develop (#7013.3)
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