31 questions
I'd like to test the modal display when I press the user delete button The following error will be displayed:it Can delete other users do visit user_path(I18n.locale, other_user) page.dismiss_confirm(...
What do you want to solveI am a programming beginner currently working on my portfolio.I thought I'd use Rspec to write tests, so I'm using Rspec to create tests.However, an error occurred while writi...
I am a beginner studying with Ruby on Rails 5 Quick Learning Practice Guide.In Chapter 5, Let's get started by rspec on page 205, the test failed and I'm struggling to move on.There is no problem look...
I'm using poltergeist to spin the rails feature spec on jenkins.Error Message One or more errors were raised in the Javascript code on the page.If you don't care about these errors, you ignore them by...
I would like to set it to be impossible to transition to someone else's post screen.Rspec got stuck and cannot be resolved.I looked into it, but I couldn't find a solution, so I would appreciate it if...
With Poltergeist, the behavior of the Capybara test case is strange.First of all, if you don't use Poltergeist, the Capybara test case is success.before {create(:user)}it's test'do visit root_path exp...
How do I test Ruby's standard input/output with RSpec?The code to be tested is as follows:class Sample def run puts 'Please input your name' while input = STDIN.gets.chomp break if input==exit puts Yo...
We are trying to commonize almost duplicate tests using each as shown below.RSpec.describe Hoge, type::model do describe'describe1'do [create(:foo), create(:bar)].each do|v| describe#{v.name}do # Tes...
The page opened using save_and_open_page in capybara will be garbled only in Japanese as shown below.Please let me know if there is any way to fix it.
I'm writing a model spec using rspec, factory-girl, and shoulda-matcher.Using validate_presence_of provided by shoulda-matcher, we are writing a spec that an empty or false cannot be entered in the fi...
« | - 3 - | » |
© 2024 OneMinuteCode. All rights reserved.