Commit 90ba3a38 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix tests for blobs refactoring

parent ed913786
...@@ -78,7 +78,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps ...@@ -78,7 +78,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
end end
step 'I click link "Diff"' do step 'I click link "Diff"' do
click_link 'Diff' click_link 'Preview changes'
end end
step 'I click on "Commit Changes"' do step 'I click on "Commit Changes"' do
......
...@@ -430,21 +430,17 @@ describe Projects::TreeController, 'routing' do ...@@ -430,21 +430,17 @@ describe Projects::TreeController, 'routing' do
end end
end end
describe Projects::EditTreeController, 'routing' do describe Projects::BlobController, 'routing' do
it 'to #show' do it 'to #edit' do
get('/gitlab/gitlabhq/edit/master/app/models/project.rb').should( get('/gitlab/gitlabhq/edit/master/app/models/project.rb').should(
route_to('projects/edit_tree#show', route_to('projects/blob#edit',
project_id: 'gitlab/gitlabhq', project_id: 'gitlab/gitlabhq',
id: 'master/app/models/project.rb')) id: 'master/app/models/project.rb'))
get('/gitlab/gitlabhq/edit/master/app/models/project.rb/preview').should(
route_to('projects/edit_tree#show',
project_id: 'gitlab/gitlabhq',
id: 'master/app/models/project.rb/preview'))
end end
it 'to #preview' do it 'to #preview' do
post('/gitlab/gitlabhq/edit/master/app/models/project.rb/preview').should( post('/gitlab/gitlabhq/preview/master/app/models/project.rb').should(
route_to('projects/edit_tree#preview', route_to('projects/blob#preview',
project_id: 'gitlab/gitlabhq', project_id: 'gitlab/gitlabhq',
id: 'master/app/models/project.rb')) id: 'master/app/models/project.rb'))
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