rspec tag

31 questions


1 answers
128 views
0
RSpec x Capybara Modal Is Displayed but Will Not Find

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(...

2 years ago

1 answers
96 views
0
Rspec is unable to configure the audio file and ActiveStorage::IntegrityError: cannot be resolved.

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...

2 years ago

1 answers
83 views
0
Unable to connect in local environment

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...

2 years ago

1 answers
102 views
0
js_errors:false but js error when jenkins test rspec

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...


1 answers
103 views
0
I want to make it impossible to transition to other people's editing screens.

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...

2 years ago

2 answers
82 views
0
DB contents not reflected in view when using Capybara and Poltergeist

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...


1 answers
97 views
0
How to Test Ruby's Standard Input/Output with RSPEC

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...

2 years ago

1 answers
120 views
0
I want to use FactoryGirl data to spin the RSpec description.

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...

2 years ago

2 answers
142 views
0
Japanese is garbled on the page opened in save_and_open_page of capybara.

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.


1 answers
108 views
0
What error is AttributeDoesNotExistError in Should Matcher...?

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.