Getting started with webmock and rspec with Rails

Тәжірибелік нұсқаулар және стиль

In this episode, you'll learn how to use webmock to stub out HTTP requests to avoid traversing the network (slow!) in rspec tests.
#rails #rubyonrails

Пікірлер: 7

  • @user-rh1vx8md7z
    @user-rh1vx8md7z3 ай бұрын

    HI, excellent presentation. Can you mention the repository link in the description?

  • @sergiomontiel4559
    @sergiomontiel4559 Жыл бұрын

    Thanks for the videos, I hope you will get full courses too. I would like to be a good rails programmer

  • @squdge
    @squdge7 ай бұрын

    Great video! Do you have an opinion on just allowing a class to receive a method and to return with the response body instead of using a tool like webmock?

  • @cjav_dev

    @cjav_dev

    7 ай бұрын

    Most of the time I can skate by without webmock and keeping things simple. If the infra is already set up with webmock tho it’s convenient.

  • @haroldpepete
    @haroldpepete Жыл бұрын

    that was really helpful can you do a video about has_many and has_many_and_belongs_to association in factorybot?

  • @cjav_dev

    @cjav_dev

    Жыл бұрын

    Sorry for the delayed response! I never use has_many_and_belongs_to, because I almost always end up needing to add some data to the join table that is used behind the scenes with that association type.

  • @haroldpepete

    @haroldpepete

    Жыл бұрын

    @@cjav_dev i think the same, but it would be really helpful to see a video about relationship in factory_bot

Келесі