Commit c285500d authored by allison.browne's avatar allison.browne

Rename variable for readability

parent 39b8fe6a
...@@ -69,8 +69,8 @@ module StatusPage ...@@ -69,8 +69,8 @@ module StatusPage
next if existing_image_keys.include? key next if existing_image_keys.include? key
uploader = UploadFinder.new(@project, $~[:secret], $~[:file]).execute uploader = UploadFinder.new(@project, $~[:secret], $~[:file]).execute
uploader.open do |f| uploader.open do |open_file|
storage_client.multipart_upload(key, f) storage_client.multipart_upload(key, open_file)
end end
end end
end end
......
...@@ -28,7 +28,7 @@ RSpec.shared_examples 'publish incidents' do ...@@ -28,7 +28,7 @@ RSpec.shared_examples 'publish incidents' do
it 'publishes details as JSON' do it 'publishes details as JSON' do
expect(result).to be_success expect(result).to be_success
expect(result.payload[:json_object_key]).to eq(key) expect(storage_client).to receive(:upload_object).with(key, content_json)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment