Skip to content

Commit

Permalink
display Service.previously_reported field
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Nov 15, 2024
1 parent 74b9bb3 commit da2231f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/admin/services/_results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<th data-sortable scope="col"># of Collections</th>
<th data-sortable scope="col">HISP Service?</th>
<th data-sortable scope="col">Status</th>
<th data-sortable scope="col">Previously reported?</th>
</tr>
</thead>
<tbody>
Expand All @@ -28,6 +29,9 @@
<td data-sort-value="<%= service_status_sort_values[service.aasm_state] %>">
<%= render 'components/service_status_tag', service: service %>
</td>
<td>
<%= service.previously_reported %>
</td>
</tr>
<% end %>
</tbody>
Expand Down
11 changes: 11 additions & 0 deletions spec/features/admin/services_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@
expect(page.current_path).to eq(admin_services_path)
expect(page).to have_link('New Service')
expect(page).to have_css('tbody tr', count: 2)

within("thead") do
expect(page).to have_text('Organization')
expect(page).to have_text('Service Provider')
expect(page).to have_text('Service name')
expect(page).to have_text('# of Stages')
expect(page).to have_text('# of Collections')
expect(page).to have_text('HISP Service?')
expect(page).to have_text('Status')
expect(page).to have_text('Previously reported?')
end
end

describe 'create a new Service' do
Expand Down

0 comments on commit da2231f

Please sign in to comment.