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

RolifyCommunity / rolify / 512
79%
master: 93%

Build:
Build:
LAST BUILD BRANCH: with_any_role_AR
DEFAULT BRANCH: master
Ran 23 Oct 2015 01:35AM UTC
Jobs 3
Files 14
Run time 29s
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
512

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 and disabled mongod logging that were flooding travis-ci outputs and reached the log size limit (4MB)

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 512.1 (2.2.2, ADAPTER=active_record) 23 Oct 2015 01:36AM UTC 0
79.11
Travis Job 512.1
3 512.3 (2.1.2, ADAPTER=active_record) 23 Oct 2015 01:35AM UTC 0
79.11
Travis Job 512.3
5 512.5 (2.0.0, ADAPTER=active_record) 23 Oct 2015 01:35AM UTC 0
79.11
Travis Job 512.5
Source Files on build 512
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #512
  • eae9e7e2 on github
  • Prev 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