Skip to content

Commit 1c61d06

Browse files
committed
Fix RuboCop minor issues
1 parent b818d60 commit 1c61d06

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.rubocop.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ RSpec/ExampleLength:
3434
RSpec/MultipleMemoizedHelpers:
3535
# default: 5
3636
Max: 6
37+
38+
RSpec/SubjectStub:
39+
Exclude:
40+
- spec/units/prawn_html/attributes_spec.rb
41+
42+
Style/OpenStructUse:
43+
Exclude:
44+
- lib/prawn_html/attributes.rb
45+
- spec/units/prawn_html/attributes_spec.rb

spec/units/prawn_html/utils_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@
127127
context 'with a nil value' do
128128
let(:value) { nil }
129129

130-
it { is_expected.to eq nil }
130+
it { is_expected.to be_nil }
131131
end
132132

133133
context 'with a blank string value' do
134134
let(:value) { '' }
135135

136-
it { is_expected.to eq nil }
136+
it { is_expected.to be_nil }
137137
end
138138

139139
context 'with a string value (ex. "some_string")' do
@@ -161,7 +161,7 @@
161161
context 'with an invalid value (ex. "some_string")' do
162162
let(:value) { 'some_string' }
163163

164-
it { is_expected.to eq nil }
164+
it { is_expected.to be_nil }
165165
end
166166

167167
context 'with a valid value (ex. " bOlD ")' do

0 commit comments

Comments
 (0)