Getting started with webmock and rspec with Rails

Sdílet
Vložit
  • čas přidán 15. 07. 2021
  • 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
  • Jak na to + styl

Komentáře • 7

  • @user-rh1vx8md7z
    @user-rh1vx8md7z Před 2 měsíci +1

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

  • @sergiomontiel4559
    @sergiomontiel4559 Před rokem +1

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

  • @squdge
    @squdge Před 6 měsíci

    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  Před 6 měsíci

      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 Před rokem

    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  Před rokem

      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 Před rokem

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