-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename MissingGroupType and UnsupportedGroupType (#2227)
* Rename MissingGroupType and UnsupportedGroupType * Add CHANGELOG.md AND UPGRADING.md entries * Quote classes * Add for more information * Add alias for MissingGroupType and UnsupportedGroupeType * Add Final newline missing.
- Loading branch information
1 parent
ed04e2c
commit e93d278
Showing
10 changed files
with
60 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe Grape::Exceptions::MissingGroupType do | ||
describe '#message' do | ||
subject { described_class.new.message } | ||
|
||
it { is_expected.to include 'group type is required' } | ||
end | ||
|
||
describe '#alias' do | ||
subject { described_class } | ||
|
||
it { is_expected.to eq(Grape::Exceptions::MissingGroupTypeError) } | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe Grape::Exceptions::UnsupportedGroupType do | ||
subject { described_class.new } | ||
|
||
describe '#message' do | ||
subject { described_class.new.message } | ||
|
||
it { is_expected.to include 'group type must be Array, Hash, JSON or Array[JSON]' } | ||
end | ||
|
||
describe '#alias' do | ||
subject { described_class } | ||
|
||
it { is_expected.to eq(Grape::Exceptions::UnsupportedGroupTypeError) } | ||
end | ||
end |
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