提交 90ba3a38 编写于 作者: D Dmitriy Zaporozhets

Fix tests for blobs refactoring

上级 ed913786
......@@ -78,7 +78,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
end
step 'I click link "Diff"' do
click_link 'Diff'
click_link 'Preview changes'
end
step 'I click on "Commit Changes"' do
......
......@@ -430,21 +430,17 @@ describe Projects::TreeController, 'routing' do
end
end
describe Projects::EditTreeController, 'routing' do
it 'to #show' do
describe Projects::BlobController, 'routing' do
it 'to #edit' do
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',
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
it 'to #preview' do
post('/gitlab/gitlabhq/edit/master/app/models/project.rb/preview').should(
route_to('projects/edit_tree#preview',
post('/gitlab/gitlabhq/preview/master/app/models/project.rb').should(
route_to('projects/blob#preview',
project_id: 'gitlab/gitlabhq',
id: 'master/app/models/project.rb'))
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册