Skip to content

Add network failure and edge case test coverage#16

Merged
steveclarke merged 1 commit into
masterfrom
14-network-failure-edge-case-tests
Mar 5, 2026
Merged

Add network failure and edge case test coverage#16
steveclarke merged 1 commit into
masterfrom
14-network-failure-edge-case-tests

Conversation

@steveclarke
Copy link
Copy Markdown
Member

Summary

  • Add tests for network timeout, connection failure (SocketError), HTTP 500, and empty response body across all three providers (BibleGateway, NetBible, OurManna)
  • Add invalid argument tests for BibleGateway.new with nil, String, and Integer
  • Extract shared example group "falls back to defaults" to DRY up fallback assertions
  • Add bin/standardrb binstub

Test plan

  • All 103 examples pass (bundle exec rspec)

Closes #14

Add tests for timeout, connection failure, HTTP 500, and empty response
body across all three providers (BibleGateway, NetBible, OurManna). Add
invalid argument tests for BibleGateway.new with nil, String, and Integer.
Extract shared example group to DRY up fallback assertions.

Also add bin/standardrb binstub.

Closes #14
@steveclarke steveclarke merged commit f25ba92 into master Mar 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add network failure and edge case test coverage

1 participant