Update test since branch removal does not render template anymore
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
db2109b086
commit
334cb86821
|
|
@ -122,27 +122,23 @@ describe Projects::BranchesController do
|
|||
let(:branch) { "feature" }
|
||||
|
||||
it { expect(response.status).to eq(200) }
|
||||
it { expect(subject).to render_template('destroy') }
|
||||
end
|
||||
|
||||
context "valid branch name with unencoded slashes" do
|
||||
let(:branch) { "improve/awesome" }
|
||||
|
||||
it { expect(response.status).to eq(200) }
|
||||
it { expect(subject).to render_template('destroy') }
|
||||
end
|
||||
|
||||
context "valid branch name with encoded slashes" do
|
||||
let(:branch) { "improve%2Fawesome" }
|
||||
|
||||
it { expect(response.status).to eq(200) }
|
||||
it { expect(subject).to render_template('destroy') }
|
||||
end
|
||||
context "invalid branch name, valid ref" do
|
||||
let(:branch) { "no-branch" }
|
||||
|
||||
it { expect(response.status).to eq(404) }
|
||||
it { expect(subject).to render_template('destroy') }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue