frozen_string_literal magic comment has been removed until a decission is taken regarding to its convenience.
18 lines
533 B
Ruby
18 lines
533 B
Ruby
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
|