forked from mastodon/mastodon
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: #621 登録時間帯制限で、制限時間中は登録を禁止ではなく承認制にする
- Loading branch information
Showing
11 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -485,18 +485,21 @@ def create_other_user | |
user = User.find_by(email: '[email protected]') | ||
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: '[email protected]') | ||
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 | ||
|