https://github.com/flanker/failing_hyperclient_test
This repo demonstrates a failing test case of HyperClient
https://github.com/flanker/failing_hyperclient_test
Last synced: 3 months ago
JSON representation
This repo demonstrates a failing test case of HyperClient
- Host: GitHub
- URL: https://github.com/flanker/failing_hyperclient_test
- Owner: flanker
- Created: 2015-06-05T06:35:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T06:40:15.000Z (over 10 years ago)
- Last Synced: 2025-01-22T23:16:14.808Z (12 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# failing_hyperclient_test
This repo demonstrates a failing test case of [HyperClient](https://github.com/codegram/hyperclient)
## Run the test
```
$ bundle install
$ rspec
```
Output:
```
$ rspec
.F
Failures:
1) Hyperclient getting second page returns record in second page
Failure/Error: expect(subject.next.names.first.name).to eq 'page2'
expected: "page2"
got: "page3"
(compared using ==)
# ./spec/hyperclient_spec.rb:41:in `block (3 levels) in '
Finished in 0.03404 seconds (files took 0.29426 seconds to load)
2 examples, 1 failure
Failed examples:
rspec ./spec/hyperclient_spec.rb:40 # Hyperclient getting second page returns record in second page
```
## About the test
This repo only has one rspec test: `spec/hyperclient_spec.rb`. It uses `webmock` to stub the http request calls and return HAL Json response.