when Omise::Token.create method is succeed, it returns json
but when failed, it returns text format
so it causes JSON::Parser error on my rspec
JSON::ParserError: 822: unexpected token at '
from /Users/xxxx/.rbenv/versions/2.4.7/lib/ruby/gems/2.4.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
Hi
when
Omise::Token.create
method is succeed, it returns json but when failed, it returns text formatso it causes JSON::Parser error on my rspec