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

RolifyCommunity / rolify / 508
79%
master: 93%

Build:
Build:
LAST BUILD BRANCH: with_any_role_AR
DEFAULT BRANCH: master
Ran 16 Oct 2015 05:46PM UTC
Jobs 3
Files 14
Run time 17s
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
508

push

travis-ci

EppO
Fix behaviour of with_any_role with no args

User.with_any_role with no args should return all User instances having at least one role.
fix #363

For the generator specs to pass, I needed to add this: ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
Otherwise, generators specs are failing because of `ActiveRecord::ConnectionNotEstablished: No connection pool for ActiveRecord::Base` error.

I had to require explicitly active_view and active_controller gems for mongoid adapter to make generators specs pass for mongoid.
I changed also mongoid.yml to use clients instead of sessions
I tried to stop logging mongoid queries as it floods travis-ci but travis-ci displays logs from mongodb service directly and reaches 4MB logs limit. I don't know how to stop it

2 of 2 new or added lines in 2 files covered. (100.0%)

337 of 426 relevant lines covered (79.11%)

490.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/rolify/adapters/active_record/role_adapter.rb

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
lib/rolify/finders.rb
Jobs
ID Job ID Ran Files Coverage
1 508.1 (2.2.2, ADAPTER=active_record) 16 Oct 2015 05:46PM UTC 0
79.11
Travis Job 508.1
3 508.3 (2.1.2, ADAPTER=active_record) 16 Oct 2015 05:46PM UTC 0
79.11
Travis Job 508.3
5 508.5 (2.0.0, ADAPTER=active_record) 16 Oct 2015 05:46PM UTC 0
79.11
Travis Job 508.5
Source Files on build 508
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #508
  • cc3a266b on github
  • Prev Build on bugfix-363 (#506)
  • Next Build on bugfix-363 (#510)
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