Readme examples failing #9

Closed
ticktricktrack opened this Issue Oct 26, 2012 · 0 comments

Comments

Projects
None yet
2 participants

I tried some examples from the README and they fail for me. Gem Specs all pass against my Ruby and Rspec versions.

I simplified it to a 2 file test in a blank rvm gemset:

https://gist.github.com/3959775

Versions:
gem 'rspec', '2.11.0'
gem 'api_matchers', '0.1.1'
ruby 1.9.3p233 (2012-05-30 revision 35845) [x86_64-darwin11.4.0]

Failures:

  1) APIMatcher examples shouldn't fail
     Failure/Error: "{ 'transaction': { 'id': '54', 'status': 'paid' } }".should have_node(:transaction)
       expected to have node called: 'transaction'. Got: '{ 'transaction': { 'id': '54', 'status': 'paid' } }'
     # ./api_matchers_spec.rb:6:in `block (2 levels) in <top (required)>'

  2) APIMatcher examples also shouldn't fail
     Failure/Error: "{ 'transaction': { 'id': '54', 'status': 'paid' } }".should have_node(:id).with(54)
       expected to have node called: 'id' with value: '54'. Got: '{ 'transaction': { 'id': '54', 'status': 'paid' } }'
     # ./api_matchers_spec.rb:10:in `block (2 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment