Skip to content

Commit 01d080b

Browse files
committed
Fix linter
1 parent a04a06a commit 01d080b

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

spec/cirro_io/client/payout_spec.rb

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
RSpec.describe CirroIO::Client::Payout do
22
let(:app_worker) { CirroIO::Client::AppWorker.load id: 1 }
3-
4-
let :request_headers do
5-
{
6-
'Accept' => 'application/vnd.api+json',
7-
'Accept-Encoding' => 'gzip,deflate',
8-
'Content-Type' => 'application/vnd.api+json',
9-
'User-Agent' => 'Faraday v1.1.0',
10-
'Authorization' => 'Bearer jwt-token',
11-
}
12-
end
13-
143
let :response_headers do
154
{
165
'Content-Type' => 'application/json',
@@ -19,7 +8,6 @@
198

209
before do
2110
configure_api_client
22-
allow(JWT).to receive(:encode).and_return('jwt-token')
2311
end
2412

2513
describe '.create' do
@@ -35,9 +23,7 @@
3523
end
3624

3725
before do
38-
stub_request(:post, request_url)
39-
.with(headers: request_headers)
40-
.to_return(body: File.read('./spec/fixtures/payout.json'), headers: response_headers)
26+
stub_request(:post, request_url).to_return(body: File.read('./spec/fixtures/payout.json'), headers: response_headers)
4127
end
4228

4329
it 'creates a payout for the app worker' do
@@ -52,8 +38,8 @@
5238
},
5339
},
5440
},
55-
attributes: attributes
56-
}
41+
attributes: attributes,
42+
},
5743
}
5844

5945
expect(payout).to be_persisted

0 commit comments

Comments
 (0)