Ivan - Fix Warning tests

This commit is contained in:
ivan 2016-08-04 17:18:42 -03:00
parent 3c3c11027d
commit c72f414f3f
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
@@agent = Mechanize.new
$agent = Mechanize.new
def request(path, data = {})
uri = 'http://localhost:8080' + path
response = @@agent.post(uri, data)
response = $agent.post(uri, data)
return JSON.parse(response.body)
end

View File

@ -1,4 +1,4 @@
describe 'ticket/comment/' do
describe '/ticket/comment/' do
it 'should fail if invalid token is passed' do
result = request('/ticket/comment', {
content: 'some comment content',