Fix specs
This commit is contained in:
parent
f4f4a6b530
commit
3639ebd081
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ describe Projects::TreeController do
|
||||||
|
|
||||||
it 'redirects to the new directory' do
|
it 'redirects to the new directory' do
|
||||||
expect(subject).
|
expect(subject).
|
||||||
to redirect_to("/#{project.path_with_namespace}/blob/#{target_branch}/#{path}")
|
to redirect_to("/#{project.path_with_namespace}/tree/#{target_branch}/#{path}")
|
||||||
expect(flash[:notice]).to eq('The directory has been successfully created.')
|
expect(flash[:notice]).to eq('The directory has been successfully created.')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -119,7 +119,7 @@ describe Projects::TreeController do
|
||||||
|
|
||||||
it 'does not allow overwriting of existing files' do
|
it 'does not allow overwriting of existing files' do
|
||||||
expect(subject).
|
expect(subject).
|
||||||
to redirect_to("/#{project.path_with_namespace}/blob/master")
|
to redirect_to("/#{project.path_with_namespace}/tree/master")
|
||||||
expect(flash[:alert]).to eq('Directory already exists as a file')
|
expect(flash[:alert]).to eq('Directory already exists as a file')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue