Adds an administration interface for the proposal dashboard actions.
This commit is contained in:
Juan Salvador Pérez García
2018-06-11 18:26:18 +02:00
parent d9f85bd756
commit 1464bddfa8
26 changed files with 619 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# frozen_string_literal: true
require 'rails_helper'
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'))
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'))
end
end
end
end