Skip to content

Commit f98c3aa

Browse files
committed
Resolve rubocop lints
1 parent 4db9203 commit f98c3aa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

spec/model/factors_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
describe Minfraud::Model::Factors do
77
describe '#initialize' do
88
it 'creates a fully populated object' do
9-
buf = File.open('spec/fixtures/files/factors-response1.json').read
9+
buf = File.read('spec/fixtures/files/factors-response1.json')
1010
record = JSON.parse(buf)
1111

1212
m = Minfraud::Model::Factors.new(record, ['en'])

spec/model/insights_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
describe Minfraud::Model::Insights do
77
describe '#initialize' do
88
it 'creates a fully populated object' do
9-
buf = File.open('spec/fixtures/files/insights-response1.json').read
9+
buf = File.read('spec/fixtures/files/insights-response1.json')
1010
record = JSON.parse(buf)
1111

1212
m = Minfraud::Model::Insights.new(record, ['en'])
@@ -135,7 +135,7 @@
135135
end
136136

137137
it 'creates a populated object missing some fields' do
138-
buf = File.open('spec/fixtures/files/insights-response2.json').read
138+
buf = File.read('spec/fixtures/files/insights-response2.json')
139139
record = JSON.parse(buf)
140140

141141
m = Minfraud::Model::Insights.new(record, ['en'])
@@ -192,7 +192,7 @@
192192
end
193193

194194
it 'creates an object when the response lacks many fields' do
195-
buf = File.open('spec/fixtures/files/insights-response3.json').read
195+
buf = File.read('spec/fixtures/files/insights-response3.json')
196196
record = JSON.parse(buf)
197197

198198
m = Minfraud::Model::Insights.new(record, ['en'])

spec/model/score_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
describe Minfraud::Model::Score do
77
describe '#initialize' do
88
it 'creates a fully populated object' do
9-
buf = File.open('spec/fixtures/files/score-response1.json').read
9+
buf = File.read('spec/fixtures/files/score-response1.json')
1010
record = JSON.parse(buf)
1111

1212
score = Minfraud::Model::Score.new(record, ['en'])
@@ -30,7 +30,7 @@
3030
end
3131

3232
it 'creates a minimally populated object' do
33-
buf = File.open('spec/fixtures/files/score-response2.json').read
33+
buf = File.read('spec/fixtures/files/score-response2.json')
3434
record = JSON.parse(buf)
3535

3636
score = Minfraud::Model::Score.new(record, ['en'])

0 commit comments

Comments
 (0)