What I was addicted to while using rspec on rails

Keep in mind that beginners were addicted to writing tests using rspec in rails.

When I tried to test the controller with rspec, I got a lot of errors. No matter where I fixed it, it didn't work, so I decided to write it according to the reference site and investigate what was wrong. But that still doesn't work. .. .. After reviewing the settings, the controller test was deprecated from rails5 and had to be changed as follows.

model → model (as is) controller     → request Screen transition test → system

It was necessary to create a folder like this, and it was necessary to describe the rails_helper settings according to the above. Please note that the reference article is a mixture of controller and request.

Also, recent rails have deprecated controller testing, It seems that it was enough if the tests of create, destroy, edit, and update were described.

Recommended Posts

What I was addicted to while using rspec on rails
I was addicted to using RXTX on Sierra
What I was addicted to when implementing google authentication with rails
[Rails] I was addicted to the nginx settings when using Action Cable.
I was addicted to starting sbt
What I was addicted to when introducing the JNI library
What I fixed when updating to Spring Boot 1.5.12 ・ What I was addicted to
I was addicted to setting default_url_options with Rails devise introduction
I was addicted to looping the Update statement on MyBatis
What I was addicted to with the Redmine REST API
I was addicted to using Java's Stream API in Scala
A note when I was addicted to converting Ubuntu on WSL1 to WSL2
I was addicted to rewriting to @SpringApplicationConfiguration-> @SpringBootTest
I was addicted to the roll method
I was addicted to the Spring-Batch test
A story I was addicted to when testing the API using MockMVC
[CircleCI] I was addicted to the automatic test of CircleCI (rails + mysql) [Memo]
I was addicted to doing onActivityResult () with DialogFragment
I was addicted to the NoSuchMethodError in Cloud Endpoints
I was addicted to the record of the associated model
What I was addicted to when developing a Spring Boot application with VS Code
A story I was addicted to when getting a key that was automatically tried on MyBatis
I want to implement it additionally while using kotlin on a site running Java
I tried unit testing Rails app using RSpec and FactoryBot
What I was interested in in Progate's Ruby on Rails course [Each statement of error message]
I knew what reflection was
[Ruby on Rails] I get a warning when executing RSpec due to a different gem version.
I entered from Rails and didn't know what [attr_accessor] was
[Rails] Test code using Rspec
I was addicted to the setting of laradock + VSCode + xdebug
Beginner Ruby on Rails What I learned is being summarized
The story I was addicted to when setting up STS
[Rails] How to solve ActiveSupport :: MessageVerifier :: InvalidSignature that I was addicted to when introducing twitter login [ActiveStorage]
[Circle CI] A story I was addicted to at Start Building
Where I was interested in Progate's Ruby on Rails course [params]
I tried to summarize what was asked at the site-java edition-
I want to add a browsing function with ruby on rails
I just want to write Java using Eclipse on my Mac
[RSpec on Rails] How to write test code for beginners by beginners
I tried to build a simple application using Dockder + Rails Scaffold
About the matter that I was addicted to how to use hashmap
I tried to display the calendar on the Eclipse console using Java.
I was addicted to the API version min23 setting of registerTorchCallback
[Rails] What was the error message?
What I learned from studying Rails
How to use Ruby on Rails
How to deploy Bootstrap on Rails
Android memo-I was addicted to Permission
Deploy Rails on Docker to heroku
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8
I was charged a lot by AWS during development on rails, but ...
How to create a query using variables in GraphQL [Using Ruby on Rails]
My.cnf configuration problem that I was addicted to when I was touching MySQL 8.0 like 5.7
I was addicted to a simple test of Jedis (Java-> Redis library)
Problems I was addicted to when building the digdag environment with docker
[Rails] What I learned from a little stumbling block when using ancestry
Recorded because I was addicted to the standard input of the Scanner class
What to do when Blocked Host: "host name" appears in Ruby on Rails
I was addicted to scrollview because I couldn't tap the variable size UIView
I was a little addicted to ssh connection from mac to linux (ubuntu)
I was addicted to unit testing with the buffer operator in RxJava