Rspec request specs for an API Controller with Rails

Sdílet
Vložit
  • čas přidán 30. 05. 2024
  • In this episode, you'll learn a little about setting up a request spec with Rspec to test an API controller in a Ruby on Rails application
    #rails #rubyonrails
  • Jak na to + styl

Komentáře • 10

  • @larrydanso1129
    @larrydanso1129 Před 2 lety +3

    Like how simple you make testing look. Thanks CJ

  • @ClaudineyPerbony
    @ClaudineyPerbony Před 2 lety +2

    Thanks for excelent explanation, keep on rspec stuff and helpers please!

  • @mitpatel7202
    @mitpatel7202 Před rokem +1

    Thank you very much. This is very valuable

  • @Neural_Network_News
    @Neural_Network_News Před 2 lety +2

    Great tutorial.

  • @CHACHANUS
    @CHACHANUS Před 2 lety +2

    great video !!

  • @mohammadmhaidat8752
    @mohammadmhaidat8752 Před rokem +1

    please can u explain how we can deal with unauthorized user , I saw in this video skip_pefore_action put u don't talk about it

  • @Neural_Network_News
    @Neural_Network_News Před 2 lety +1

    I have a question. I have requirements to make an API which will have data(Json) + files.

    • @cjav_dev
      @cjav_dev  Před 2 lety

      As in accepting file uploads?

    • @Neural_Network_News
      @Neural_Network_News Před 2 lety

      @@cjav_dev yes. I created a API using types form to upload file + data. In controller I received as string and convert into action controller parameters. Now I want to create it's rspec test case.

  • @mohammadmhaidat8752
    @mohammadmhaidat8752 Před rokem

    give just one example on post all cases get nothing new