Skip to content

Commit

Permalink
Merge pull request #78 from alphagov/upv-detail-page
Browse files Browse the repository at this point in the history
Update page views label
  • Loading branch information
theleebriggs authored Feb 28, 2017
2 parents 8948d4f + 6235351 commit 4b5c3ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/content_items/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td><%= @content_item.document_type %></td>
</tr>
<tr>
<td>Unique page views (last 7 days)</td>
<td>Unique page views (last 1 month)</td>
<td><%= @content_item.unique_page_views %></td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion spec/views/content_items/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
content_item.unique_page_views = 10
render

expect(rendered).to have_selector('td', text: 'Unique page views (last 7 days)')
expect(rendered).to have_selector('td', text: 'Unique page views (last 1 month)')
expect(rendered).to have_selector('td + td', 'text': 10)
end

Expand Down

0 comments on commit 4b5c3ee

Please sign in to comment.