Proposals dashboard refactored to dashboard.
Added missing specs for the dashboard.
This commit is contained in:
Juan Salvador Pérez García
2018-07-24 15:52:43 +02:00
parent 0ea0a0031c
commit e5f9cf6710
82 changed files with 1131 additions and 694 deletions

View File

@@ -4,13 +4,13 @@ describe Admin::ProposalDashboardActionsHelper do
describe 'active_human_readable' do
context 'when active is true' do
it 'returns label for active state' do
expect(active_human_readable(true)).to eq(t('admin.proposal_dashboard_actions.index.active'))
expect(active_human_readable(true)).to eq(t('admin.dashboard.actions.index.active'))
end
end
context 'when active is false' do
it 'returns label for inactive state' do
expect(active_human_readable(false)).to eq(t('admin.proposal_dashboard_actions.index.inactive'))
expect(active_human_readable(false)).to eq(t('admin.dashboard.actions.index.inactive'))
end
end
end