Ivan - Fix Warning tests
This commit is contained in:
parent
3c3c11027d
commit
c72f414f3f
|
@ -1,8 +1,8 @@
|
||||||
@@agent = Mechanize.new
|
$agent = Mechanize.new
|
||||||
|
|
||||||
def request(path, data = {})
|
def request(path, data = {})
|
||||||
uri = 'http://localhost:8080' + path
|
uri = 'http://localhost:8080' + path
|
||||||
response = @@agent.post(uri, data)
|
response = $agent.post(uri, data)
|
||||||
|
|
||||||
return JSON.parse(response.body)
|
return JSON.parse(response.body)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
describe 'ticket/comment/' do
|
describe '/ticket/comment/' do
|
||||||
it 'should fail if invalid token is passed' do
|
it 'should fail if invalid token is passed' do
|
||||||
result = request('/ticket/comment', {
|
result = request('/ticket/comment', {
|
||||||
content: 'some comment content',
|
content: 'some comment content',
|
||||||
|
|
Loading…
Reference in New Issue