demandchain/galaxy-client — pull request #71 by pmkwan (2012-12-16 22:29:50+00:00)
Title: SERVE-697 Unauthenticated Sub Header - Subscribing Prospect Users

WIP spec is not working yet for the .validate_email_and_zip

Need help on the spec. I'm getting this from the console:

1) Galaxy::User.validate_email_and_zip sends GET to /users/validate.json
Failure/Error: Galaxy::User.validate_email_and_zip("test@test.com", "94102").should be_empty
ActiveResource::InvalidRequestError:
Could not find a response recorded for "Basic Zm9vOmJhcg==", "Accept"=>"application/json"}] ()> - Responses recorded are: ["\"Basic Zm9vOmJhcg==\", \"Accept\"=>\"application/json\"}] ()>"]
# ./lib/galaxy/user.rb:76:in `validate_email_and_zip'
# ./spec/galaxy/user_spec.rb:77:in `block (3 levels) in '

I'm not sure why it's looking for an [] around the mock call.