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

RolifyCommunity / rolify
79%
master: 93%

Build:
Build:
LAST BUILD BRANCH: with_any_role_AR
DEFAULT BRANCH: master
Repo Added 15 Sep 2014 05:14PM UTC
Files 37
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

LAST BUILD ON BRANCH bugfix-363
branch: bugfix-363
CHANGE BRANCH
x
Reset
  • bugfix-363
  • avoid-inplace-mutation
  • drop_old_rubies
  • eol-ruby
  • github-actions
  • master
  • mongoid-6
  • rails-6-compatibility
  • remove-deprecated-ruby-rails-mongoid-testing
  • remove_abusive_caching
  • rolify-5-3-release
  • rolify-53
  • specs-rails-5
  • v2
  • v3
  • v4.0.0
  • v4.1.0
  • v4.1.1
  • v5.0.0
  • v5.1.0
  • v5.2.0
  • v5.3.0

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

Relevant lines Covered
Build:
Build:
426 RELEVANT LINES 337 COVERED LINES
490.67 HITS PER LINE
Source Files on bugfix-363
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
512 bugfix-363 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(:adapt... push 23 Oct 2015 01:35AM UTC EppO travis-ci pending completion  
510 bugfix-363 disable mongod logging push 23 Oct 2015 12:48AM UTC EppO travis-ci pending completion  
508 bugfix-363 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(:adapt... push 16 Oct 2015 05:46PM UTC EppO travis-ci pending completion  
506 bugfix-363 Merge branch 'bugfix-363' of github.com:RolifyCommunity/rolify into bugfix-363 push 16 Oct 2015 05:36PM UTC EppO travis-ci pending completion  
504 bugfix-363 stop logging mongoid queries as it floods travis-ci push 16 Oct 2015 05:25PM UTC EppO travis-ci pending completion  
502 bugfix-363 Change mongoid.yml to use clients instead of sessions push 16 Oct 2015 05:18PM UTC EppO travis-ci pending completion  
501 bugfix-363 Require explicitly active_view and active_controller gems for mongoid adapter to make generators specs pass push 16 Oct 2015 05:03PM UTC EppO travis-ci pending completion  
498 bugfix-363 Initialize ActiveRecord connection for generators specs only for ActiveRecord specs When running the specs with ADAPTER=mongoid, previous commit makes specs fail push 16 Oct 2015 04:46PM UTC EppO travis-ci pending completion  
496 bugfix-363 ActiveRecord connection is not established explicitly For the generator specs to pass, I needed to add this: ```ruby ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ``` Otherwise, generators specs are faili... push 16 Oct 2015 04:39PM UTC EppO travis-ci pending completion  
See All Builds (382)
  • Repo on GitHub
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

© 2025 Coveralls, Inc