Closed anildigital closed 11 years ago
Hi @anildigital, this is not a json_expressions
error. json_expressions
does not actually provide a get
method - the get
method in the read me is used for illustration purposes. You will need to fetch the desired page yourself (with net/http
, faraday
, etc).
Sorry for the confusion! I'll make that clear in the next update.
btw, with json_expression, your code snippet could be rewritten as...
def test_login
server_response = get 'http://localhost:8080/myapp-demo/mobile/login/login' # Again, bring your own http library
pattern = {
companyId: wildcard_matcher,
firstName: wildcard_matcher
}.ignore_extra_keys!
assert_match pattern, server_response.body
end
Getting error
for this code snippet https://gist.github.com/942e43ff3c050fe4e9ce