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

rbCAS / CASino / 185 / 1
98%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v4.1.2
DEFAULT BRANCH: master
Ran 01 Nov 2013 02:42PM UTC
Files 76
Run time –
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

01 Nov 2013 02:42PM UTC coverage: 97.784% (-0.1%) from 97.881%
1.9.3

Pull #16

travis-ci

dlindahl
Adds CurrentUser processor

This extracts the "find user by TGT" logic that exists in all of the processors
and puts it in a CurrentUser processor.

This processor is automatically run in a :before_filter for most controller
actions. If a user is found, then the User record is assigned to the
@current_user instance variable. From there it can be passed into the other
processors as well as be used in the various CASino views.

An additional benefit of this feature is that the host application can also
use this value in its own views:

```ruby
class WidgetsController < ApplicationController
  include CASino::CurrentUserHelper

  def index
    # ...
  end
end

<div class="widgets">
  <% if user_signed_in? %>
    <%= debug current_user %>
  <% end %>
</div>
```

* Adds CurrentUser processor to encapsulate all user look-up based on TGT
  values

* Provides #current_user and #user_signed_in? controller helper methods

* Refactored some more complicated internal logic out into private methods
  for a handful of processors
Pull Request #16: Adds CurrentUser processor

1059 of 1083 relevant lines covered (97.78%)

22.8 hits per line

Source Files on job 185.1 (1.9.3)
  • Tree
  • List 0
  • Changed 25
  • Source Changed 21
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 185
  • Travis Job 185.1
  • fa91a54a on github
  • Prev Job for 1.9.3 on release/2.0 (#179.1)
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