* 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
|
@ -485,18 +485,21 @@ RSpec.describe Auth::RegistrationsController do
|
|||
user = User.find_by(email: 'test@example.com')
|
||||
expect(user).to_not be_nil
|
||||
expect(user.locale).to eq(accept_language)
|
||||
expect(user.approved?).to be true
|
||||
end
|
||||
else
|
||||
it 'does not create user' do
|
||||
subject
|
||||
user = User.find_by(email: 'test@example.com')
|
||||
expect(user).to be_nil
|
||||
expect(user).to_not be_nil
|
||||
expect(user.approved?).to be false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
it_behaves_like 'registration with time', 'time range is not set', 0, 24, 0, 0, true
|
||||
it_behaves_like 'registration with time', 'time range is default values', 0, 0, 0, 0, true
|
||||
it_behaves_like 'registration with time', 'time range is set', 9, 12, 0, 0, true
|
||||
it_behaves_like 'registration with time', 'time range is out of range', 12, 15, 0, 0, false
|
||||
it_behaves_like 'registration with time', 'time range is invalid', 20, 15, 0, 0, true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue