C0 code coverage information
Generated on Sat Dec 08 16:45:50 -0200 2007 with rcov 0.8.1.2
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 LecturesController < ApplicationController
2 # GET /lectures
3 def index
4 @lectures = Lecture.find(:all)
5 end
6
7 # GET /lectures/1
8 def show
9 @lecture = Lecture.find(params[:id])
10 end
11
12 # GET /lectures/new
13 def new
14 @lecture = Lecture.new
15 end
16
17 # GET /lectures/1;edit
18 def edit
19 @lecture = Lecture.find(params[:id])
20 end
21
22 # POST /lectures
23 def create
24 @lecture = Lecture.new(params[:lecture])
25
26 if @lecture.save
27 flash[:notice] = 'Lecture was successfully created.'
28 redirect_to lecture_url(@lecture)
29 else
30 render :action => "new"
31 end
32 end
33
34 # PUT /lectures/1
35 def update
36 @lecture = Lecture.find(params[:id])
37
38 if @lecture.update_attributes(params[:lecture])
39 flash[:notice] = 'Lecture was successfully updated.'
40 redirect_to lecture_url(@lecture)
41 else
42 render :action => "edit"
43 end
44 end
45
46 # DELETE /lectures/1
47 def destroy
48 @lecture = Lecture.find(params[:id])
49 @lecture.destroy
50 redirect_to lectures_url
51 end
52 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.