Commit 334cb868 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Update test since branch removal does not render template anymore

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent db2109b0
...@@ -122,27 +122,23 @@ describe Projects::BranchesController do ...@@ -122,27 +122,23 @@ describe Projects::BranchesController do
let(:branch) { "feature" } let(:branch) { "feature" }
it { expect(response.status).to eq(200) } it { expect(response.status).to eq(200) }
it { expect(subject).to render_template('destroy') }
end end
context "valid branch name with unencoded slashes" do context "valid branch name with unencoded slashes" do
let(:branch) { "improve/awesome" } let(:branch) { "improve/awesome" }
it { expect(response.status).to eq(200) } it { expect(response.status).to eq(200) }
it { expect(subject).to render_template('destroy') }
end end
context "valid branch name with encoded slashes" do context "valid branch name with encoded slashes" do
let(:branch) { "improve%2Fawesome" } let(:branch) { "improve%2Fawesome" }
it { expect(response.status).to eq(200) } it { expect(response.status).to eq(200) }
it { expect(subject).to render_template('destroy') }
end end
context "invalid branch name, valid ref" do context "invalid branch name, valid ref" do
let(:branch) { "no-branch" } let(:branch) { "no-branch" }
it { expect(response.status).to eq(404) } it { expect(response.status).to eq(404) }
it { expect(subject).to render_template('destroy') }
end end
end end
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