Fix a failure because we stub DiffHelper#diff_file_blob_raw_path instead of #diff_file_blob_raw_url

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-12-20 18:47:45 +01:00
parent f5290c9738
commit 1ed8cf1c50
No known key found for this signature in database
GPG Key ID: 46DF07E5CD9E96AB
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ feature 'image diff notes', :js do
# Stub helper to return any blob file as image from public app folder.
# This is necessary to run this specs since we don't display repo images in capybara.
allow_any_instance_of(DiffHelper).to receive(:diff_file_blob_raw_path).and_return('/apple-touch-icon.png')
allow_any_instance_of(DiffHelper).to receive(:diff_file_blob_raw_url).and_return('/apple-touch-icon.png')
end
context 'create commit diff notes' do
@ -192,7 +192,7 @@ feature 'image diff notes', :js do
it 'resizes image in onion skin view mode' do
find('.view-modes-menu .onion-skin').click
expect(find('.onion-skin-frame')['style']).to match('width: 228px; height: 240px;')
expect(find('.onion-skin-frame')['style']).to match('width: 243px; height: 240px;')
end
it 'resets onion skin view mode opacity when toggling between view modes' do