Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 1, 2025

Fixes #766 (partial - addresses review feedback)

Adds test coverage for the delete method's expanded status code acceptance (2xx/3xx) introduced in PR #766.

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

Changes

  • Added 6 test cases in spec/framework/version_spec.rb covering:
    • Success cases: 200, 202, 204, 307
    • Failure cases: 404, 500
  • Updated .gitignore to exclude vendor/bundle

Tests verify the delete method now accepts all 2xx and 3xx status codes while properly raising errors for 4xx/5xx, validating the behavior change from accepting only 204 to the expanded range.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 1, 2025 13:55
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>
Copilot AI changed the title [WIP] Update supporting all status codes for delete test: Add comprehensive delete method status code tests Dec 1, 2025
Copilot AI requested a review from manisha1997 December 1, 2025 13:59
Copilot finished work on behalf of manisha1997 December 1, 2025 13:59
@manisha1997 manisha1997 marked this pull request as ready for review December 1, 2025 14:17
@manisha1997 manisha1997 merged commit aa67292 into support-all-status-codes-for-delete Dec 1, 2025
4 checks passed
@manisha1997 manisha1997 deleted the copilot/sub-pr-766 branch December 1, 2025 14:18
manisha1997 added a commit that referenced this pull request Dec 4, 2025
* chore: Support all status codes for delete

* test: Add comprehensive delete method status code tests (#767)

* Initial plan

* Add comprehensive tests for delete method with various status codes

Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>

* Add vendor/bundle to .gitignore and remove from repository

Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>
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.

2 participants