Skip to content

Commit

Permalink
should return hash not json
Browse files Browse the repository at this point in the history
  • Loading branch information
espen committed Jun 19, 2012
1 parent 5ae2ae2 commit 4d66d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hoi.rb
Expand Up @@ -93,7 +93,7 @@ def handle_response(response)
end

def call(url, params)
return {:status => 'success_ok'}.to_json if @@test_mode
return {:status => 'success_ok'} if @@test_mode
handle_response( self.class.post('/sms/send', {:body => default_params(params) }) )
end

Expand Down

0 comments on commit 4d66d24

Please sign in to comment.