Skip to content

Commit 693180f

Browse files
committed
Reorder PrimitiveCoercerSpec contexts to be alphabetical
1 parent 2bf2c1a commit 693180f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/grape/validations/types/primitive_coercer_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
subject { described_class.new(type, strict) }
99

1010
describe '#call' do
11+
context 'BigDecimal' do
12+
let(:type) { BigDecimal }
13+
14+
it 'coerces to BigDecimal' do
15+
expect(subject.call(5)).to eq(BigDecimal(5))
16+
end
17+
end
18+
1119
context 'Boolean' do
1220
let(:type) { Grape::API::Boolean }
1321

@@ -40,14 +48,6 @@
4048
end
4149
end
4250

43-
context 'BigDecimal' do
44-
let(:type) { BigDecimal }
45-
46-
it 'coerces to BigDecimal' do
47-
expect(subject.call(5)).to eq(BigDecimal(5))
48-
end
49-
end
50-
5151
context 'the strict mode' do
5252
let(:strict) { true }
5353

0 commit comments

Comments
 (0)