Posts by danilopopeye • 139 points
3 posts
-
1
votes1
answer46
viewsA: How to test the locals on a render?
# assert that the "_customer" partial was rendered with a specific object assert_template partial: '_customer', locals: { customer: @customer } ref.: Actioncontroller::Testcase…
-
1
votes2
answers456
viewsA: Javascript files do not load in production. How to resolve?
looks like you renamed the application.js for main.js, correct? if you look at the file main-#{checksum}.js, it should contain all the files you are saying that "do not load".…
-
1
votes3
answers847
viewsA: Correct model test (Rspec)
describe Article do it "object article create is valid?" do article = Article.new({ # 1 title: "Title for Test", # 2 description: "", body: "Body for Test", position_image_highlighted: "" })…