Commit 4239e83e362161ada6a2fedb9c6286da7caa08c3
1 parent
9ab86ab5
Exists in
master
and in
1 other branch
Errs#index
Showing
4 changed files
with
28 additions
and
1 deletions
Show diff stats
app/views/errs/_table.html.haml
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | %td.environment |
15 | 15 | %abbr{:title => err.environment}= err.environment.chars.first.upcase |
16 | 16 | - unless @project |
17 | - %td.project= err.project | |
17 | + %td.project= err.project.name | |
18 | 18 | %td.message |
19 | 19 | = link_to err.message, project_err_path(err.project, err) |
20 | 20 | %em= err.where | ... | ... |
... | ... | @@ -0,0 +1,17 @@ |
1 | +require 'spec_helper' | |
2 | + | |
3 | +describe ErrsController do | |
4 | + | |
5 | + let(:project) { Factory(:project) } | |
6 | + | |
7 | + describe "GET /errs" do | |
8 | + it "gets a paginated list of unresolved errors" do | |
9 | + errors = WillPaginate::Collection.new(1,30) | |
10 | + 3.times { errors << Factory(:err, :project => project) } | |
11 | + Err.should_receive(:unresolved).and_return(mock('proxy', :paginate => errors)) | |
12 | + get :index | |
13 | + assigns(:errs).should == errors | |
14 | + end | |
15 | + end | |
16 | + | |
17 | +end | ... | ... |