Display 'no active blocks' on accounts block page
This commit is contained in:
parent
60c9ff9b64
commit
1ae9289710
3 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
<% content_for :heading do %>
|
||||
<h1><%= t ".title" %></h1>
|
||||
<% end %>
|
||||
|
||||
<p><%= t ".no_active_blocks" %></p>
|
||||
|
|
|
@ -282,6 +282,7 @@ en:
|
|||
blocks:
|
||||
index:
|
||||
title: Blocks on Me
|
||||
no_active_blocks: There are no active blocks on your account.
|
||||
deletions:
|
||||
show:
|
||||
title: Delete My Account
|
||||
|
|
|
@ -22,6 +22,9 @@ module Accounts
|
|||
|
||||
get account_blocks_path
|
||||
assert_response :success
|
||||
assert_dom "#content > .content-body" do
|
||||
assert_dom "p", :text => /no active blocks/
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_with_inactive_block
|
||||
|
@ -31,6 +34,9 @@ module Accounts
|
|||
|
||||
get account_blocks_path
|
||||
assert_response :success
|
||||
assert_dom "#content > .content-body" do
|
||||
assert_dom "p", :text => /no active blocks/
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_with_unseen_block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue