* Change: #621 登録時間帯制限で、制限時間中は登録を禁止ではなく承認制にする * 管理画面のUIを改善 * Fix test * Fix lint
This commit is contained in:
parent
4119b8713e
commit
941705be62
13 changed files with 52 additions and 33 deletions
|
@ -86,6 +86,10 @@ describe ApplicationHelper do
|
|||
describe 'open_registrations?' do
|
||||
it 'returns true when open for registrations' do
|
||||
allow(Setting).to receive(:[]).with('registrations_mode').and_return('open')
|
||||
allow(Setting).to receive(:[]).with('registrations_start_hour').and_return(0)
|
||||
allow(Setting).to receive(:[]).with('registrations_end_hour').and_return(0)
|
||||
allow(Setting).to receive(:[]).with('registrations_secondary_start_hour').and_return(0)
|
||||
allow(Setting).to receive(:[]).with('registrations_secondary_end_hour').and_return(0)
|
||||
|
||||
expect(helper.open_registrations?).to be true
|
||||
expect(Setting).to have_received(:[]).with('registrations_mode')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue