Enable blind voting
This commit is contained in:
parent
8388385b51
commit
59eeb7edbd
17 changed files with 391 additions and 108 deletions
|
|
@ -4,6 +4,17 @@ describe ApplicationHelper, type: :helper do
|
|||
let(:conference) { create(:conference) }
|
||||
let(:event) { create(:event, program: conference.program) }
|
||||
|
||||
describe 'format_datetme' do
|
||||
it 'returns nothing if there is no parameter' do
|
||||
expect(format_datetime(nil)).to eq nil
|
||||
end
|
||||
|
||||
it 'returns formatted string' do
|
||||
datetime = Time.zone.local(2016, 05, 04, 11, 30)
|
||||
expect(format_datetime(datetime)).to eq '2016-05-04 11:30'
|
||||
end
|
||||
end
|
||||
|
||||
describe 'show_roles' do
|
||||
it 'formats the hash passed' do
|
||||
roles = { 'organizer' => ['oSC16', 'oSC15'], 'cfp' => ['oSC16'] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue