File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments