Commit da137ec3 authored by tiagonbotelho's avatar tiagonbotelho

adds test to check json fields on simple request and changes the url request format

parent 9102ad1f
......@@ -401,7 +401,6 @@ class GitLabDropdown
selected = true
# Set URL
console.log(data)
if @options.url?
url = @options.url(data)
else
......
......@@ -22,7 +22,6 @@ describe 'Project Title', ->
@projects_data = fixture.load('projects.json')[0]
spyOn(jQuery, 'ajax').and.callFake (req) =>
expect(req.url).toBe('/api/v3/projects.json?simple=true')
d = $.Deferred()
d.resolve @projects_data
......
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