Skip to content

Commit 499bf36

Browse files
author
root
committed
Test Mirror push action
1 parent 3bd61a6 commit 499bf36

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: spec/controllers/repository_mirrors_controller_spec.rb

+12
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ def success_url
4343
end
4444

4545

46+
describe "GET #push" do
47+
before do
48+
request.session[:user_id] = @user.id
49+
get :push, :repository_id => @repository_git.id, :id => @mirror.id
50+
end
51+
52+
it "renders the :push view" do
53+
expect(response).to render_template(:push)
54+
end
55+
end
56+
57+
4658
describe "GET #new" do
4759
before do
4860
request.session[:user_id] = @user.id

0 commit comments

Comments
 (0)