Skip to content

Commit 86944be

Browse files
committed
Remove unused code
1 parent aaf55b9 commit 86944be

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

test/functional/github_hook_controller_test.rb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,8 @@ def setup
7272
Repository.expects(:fetch_changesets).never
7373
end
7474

75-
def mock_descriptor(kind, contents = [])
76-
descriptor = mock(kind)
77-
descriptor.expects(:readlines).returns(contents)
78-
descriptor
79-
end
80-
81-
def do_post(payload = nil)
82-
payload = json if payload.nil?
83-
payload = payload.to_json if payload.is_a?(Hash)
84-
post :index, :payload => payload
85-
end
86-
87-
def test_should_use_the_repository_name_as_project_identifier
88-
Project.expects(:find_by_identifier).with('github').returns(project)
89-
GithubHook::Updater.any_instance.stubs(:exec).returns(true)
90-
do_post
75+
def do_post
76+
post :index, :payload => json
9177
end
9278

9379
def test_should_render_ok_when_done

0 commit comments

Comments
 (0)