自動テストは、コードが変更されるたびに自動テストを動かしてエラーの有無を確認することで、コードに意図しない不具合や挙動変更が混入することを防ぐことができます。 プログラムが正しく動作しているかどうかを確認するプログラムを作り、それを ...
RSpec Rails defines ten different types of specs for testing different parts of a typical Rails application. Each one inherits from one of Rails’ built-in TestCase classes, meaning the helper methods ...
expect(gen).to receive :create_fixture_file は何してる? templateメソッドを呼び出してる templateメソッドは何をしている? thorの中のメソッドなので省略するけど、ファイルを生成してる。具体的には、特定のソースファイルをテンプレートをもとに生成している感じ。
rspec-rails brings the RSpec testing framework to Ruby on Rails as a drop-in alternative to its default testing framework, Minitest. In RSpec, tests are not just scripts that verify your application ...
Just kind of a full stack developer trying to be a real full stack developer. Just kind of a full stack developer trying to be a real full stack developer. Just kind ...