rubocop issues - Cleaning up (#8912)
* cleanup pass * undo mistakes * fixed. * revert
This commit is contained in:
committed by
Eugen Rochko
parent
a00ce8c92c
commit
f194857ac9
@ -15,7 +15,7 @@ RSpec.describe Api::SalmonController, type: :controller do
|
||||
describe 'POST #update' do
|
||||
context 'with valid post data' do
|
||||
before do
|
||||
post :update, params: { id: account.id }, body: File.read(File.join(Rails.root, 'spec', 'fixtures', 'salmon', 'mention.xml'))
|
||||
post :update, params: { id: account.id }, body: File.read(Rails.root.join('spec', 'fixtures', 'salmon', 'mention.xml'))
|
||||
end
|
||||
|
||||
it 'contains XML in the request body' do
|
||||
@ -54,7 +54,7 @@ RSpec.describe Api::SalmonController, type: :controller do
|
||||
service = double(call: false)
|
||||
allow(VerifySalmonService).to receive(:new).and_return(service)
|
||||
|
||||
post :update, params: { id: account.id }, body: File.read(File.join(Rails.root, 'spec', 'fixtures', 'salmon', 'mention.xml'))
|
||||
post :update, params: { id: account.id }, body: File.read(Rails.root.join('spec', 'fixtures', 'salmon', 'mention.xml'))
|
||||
end
|
||||
|
||||
it 'returns http client error' do
|
||||
|
Reference in New Issue
Block a user