diff options
| author | Robin Houston <robin.houston@gmail.com> | 2012-01-23 22:12:43 +0000 | 
|---|---|---|
| committer | Robin Houston <robin.houston@gmail.com> | 2012-01-23 22:12:43 +0000 | 
| commit | b4733e8526a9d611a260a3c79948adc916bb380c (patch) | |
| tree | 753e2e33a80be6f18d57117ad8f61480b655f7a3 /script/request-creation-graph | |
| parent | 000a4b3bc2858124301eb36553b018266cfe2cae (diff) | |
Add missing fixtures
Without this addition, the "shows a user" test would fail unless run in a
context where the public body fixtures had already been loaded, with an
error like this:
ActionView::TemplateError in 'AdminUserController when administering users shows a user'
undefined method `name' for nil:NilClass
On line #14 of app/views/admin_request/_some_requests.rhtml
    11: <% for info_request in info_requests %>
    12:   <tr class="<%= cycle('odd', 'even') %>">
    13:     <td><%= request_both_links(info_request) %></td>
    14:     <td><%= public_body_both_links(info_request.public_body) %></td>
    15:     <td><%= user_both_links(info_request.user) %></td>
    16:   <% for column in InfoRequest.content_columns.map { |c| c.name } - [ "title", "url_title" ] %>
    17:     <td><%=h info_request.send(column) %></td>
Diffstat (limited to 'script/request-creation-graph')
0 files changed, 0 insertions, 0 deletions
