Hoping this helps someone! Important links below! The blog post for this tutorial is available when this video goes live at deanin.com/blog/rspec-rails Channel Discord is available at discord.gg/vumKwDk
@marcusl162 жыл бұрын
Still working, was so good have seen this video, I'm trying to go into rails hardly just wanna see after your walking arround for SEO and other themes a test for an rails api. thank for all
@cherryramatis25083 жыл бұрын
this is exactly what i needed so long, thank you!
@prodbyindigo3 жыл бұрын
really helpful getting me ready for an interview thanks
@Deanin3 жыл бұрын
Good luck with the interview!!!
@THE720SKATERS4 жыл бұрын
Thank you this was very helpful
@Deanin4 жыл бұрын
Glad it helped!
@railsdev9733 жыл бұрын
This is really helpful. Thank you !!!
@jandrei324 жыл бұрын
could you do a video on deploying a rails api project to a digital ocean droplet? all ive found is heroku, or rails apps with front end enabled which doesnt seem to play nice with the --api flag
@Deanin4 жыл бұрын
Yeah, this is actually a really interesting idea. I'll add it to the list. I think that setting up a production app for an API and a front end would be a really good exercise!
@daniloalves74402 жыл бұрын
Is there any difference between this rails version and the rails 7 about this tutorial? Edit: If anybody tries to do that using rails 7 probably you may face different configurations, for example, when you install rspec the file "test_helper.rb" isn't on the spec folder.
@justinclark92582 жыл бұрын
Just get rvm and switch versions
@coding_with_pc Жыл бұрын
😍✌🤗
@nitishanand46443 жыл бұрын
I am not able to write a test helper to use current_user in all the files inside specs/views. Can anybody help me with this?
@marcusl162 жыл бұрын
idk if is too late but just on spec folder create anew file called for example post_helper.rb, after that, create a method like def default_user #put all the userstuff here end and on your spec files on top put the require 'post_helper' i recommend to use just after the Rspec.describe a let var to get the method return like this RSpec.describe Post, type: :model do let(:current_user) {default_user}... u'll can call the current_user as Dean showed us on this awesome tuto.