Files
nairobi/spec/helpers/admin/proposal_dashboard_actions_helper_spec.rb
Juan Salvador Pérez García 1464bddfa8 Fixes #134
Adds an administration interface for the proposal dashboard actions.
2018-07-17 17:48:46 +02:00

20 lines
564 B
Ruby

# 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