Coder Social home page Coder Social logo

Comments (4)

k0kubun avatar k0kubun commented on June 10, 2024 1

I added an initial support of rack-test and non-Rails apps like Roda. Please try v0.3.0.

Though path and summary here are probably not that great compared to ones generated for Rails. I'd appreciate your input or patch for these two lines as a Roda user.

from rspec-openapi.

AlexeyMatskevich avatar AlexeyMatskevich commented on June 10, 2024 1

It worked

from rspec-openapi.

AlexeyMatskevich avatar AlexeyMatskevich commented on June 10, 2024

After require "rspec/openapi" in spec get errors:

     Failure/Error:
       def request(uri, env = {}, &block)
         uri = parse_uri(uri, env)
         env = env_for(uri, env)
         process_request(uri, env, &block)
       end
     
     ArgumentError:
       wrong number of arguments (given 0, expected 1..2)
     Shared Example Group: "user success login" called from ./spec/idp_spec.rb:20
     # /usr/local/bundle/gems/rack-test-1.1.0/lib/rack/test.rb:116:in `request'
     # /usr/local/bundle/gems/rspec-openapi-0.2.2/lib/rspec/openapi/hooks.rb:11:in `block in <top (required)>'

from rspec-openapi.

k0kubun avatar k0kubun commented on June 10, 2024

It's currently so https://github.com/k0kubun/rspec-openapi#current-limitations, but I can take a look at supporting Roda + rack-test.

from rspec-openapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.