C0 code coverage information
Generated on Sat May 27 21:23:33 CEST 2006 with rcov 0.5.0
Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
1 class Admin::UsersController < Admin::BaseController
2
3 def index
This method was called by:
1 vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'
4 list
5 render_action 'list'
6 end
7
8 def list
This method was called by:
1 vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'
1 app/controllers/admin/users_controller.rb:4 in 'index'
9 @users = User.find_all
10 end
11
12 def show
13 @user = User.find(params[:id])
14 end
15
16 def new
17 @user = User.new(params[:user])
18 if request.post? and @user.save
19 flash[:notice] = 'User was successfully created.'
20 redirect_to :action => 'list'
21 end
22 end
23
24 def edit
25 @user = User.find(params[:id])
26 @user.attributes = params[:user]
27 if request.post? and @user.save
28 flash[:notice] = 'User was successfully updated.'
29 redirect_to :action => 'show', :id => @user.id
30 end
31 @user.password = @user.password_confirmation = ''
32 end
33
34 def destroy
35 @user = User.find(params[:id])
36 if request.post?
37 @user.destroy
38 redirect_to :action => 'list'
39 end
40 end
41
42 end
Generated using the rcov code coverage analysis tool for Ruby version 0.5.0.