File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 77 - uses : actions/checkout@v2
88 - uses : ruby/setup-ruby@v1
99 with :
10- ruby-version : ' 3.0 '
10+ ruby-version : 3.1
1111 - run : bundle install
1212 - run : bundle exec rake -t rubocop
Original file line number Diff line number Diff line change 1313 2.6,
1414 2.7,
1515 ' 3.0' ,
16+ 3.1,
1617 jruby,
1718 ]
1819 exclude :
Original file line number Diff line number Diff line change 66describe 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' ] )
Original file line number Diff line number Diff line change 66describe 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' ] )
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' ] )
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' ] )
Original file line number Diff line number Diff line change 66describe 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' ] )
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' ] )
You can’t perform that action at this time.
0 commit comments