Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ID not found #223

Closed
wants to merge 1 commit into from
Closed

Fix ID not found #223

wants to merge 1 commit into from

Conversation

laerciosb
Copy link

Hi, thanks for sharing this amazing gem. I updated to version 0.18.1 and I ran into a problem when trying to create openapi from an endpoint in which a non-existent ID is passed as a parameter. Something like:

context 'when resource not found' do
  let(:resource_id) { 'abc123' }

  before do
    get resource_url(resource_id), as: :json
  end

  it { is_expected.to have_http_status(:not_found) }
end

Locally I managed to correct the behavior through this code. In the 0.17.0 version everything was working perfectly fine. I hope this helps in some way and that it continues to evolve. Thank you very much.

@laerciosb laerciosb marked this pull request as draft April 21, 2024 03:59
@laerciosb laerciosb closed this Apr 21, 2024
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.

None yet

1 participant