Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
37いいね 1793回再生

Installation and Structure - Testing Rails with RSpec Tutorial pt 1

This video covers:
00:29 - Installing RSpec
01:37 - Setting ruby version for rbenv
02:17 - Creating spec directory and first test file
02:57 - Writing our first basic test
04:13 - Running tests via bundler in the cli
04:57 - describe block
06:18 - it block
07:26 - Writing a real world test for a User class
10:00 - Verifying the test is correct

In this tutorial series I'll cover the most important parts of testing using RSpec 3 and Rails 7. First, I'll explain how to install RSpec and create your first test. After writing the test, I'll show you how to run it via the CLI. I'll cover the basics of structuring RSpec tests using 'describe' and 'it' blocks. Lastly, I'll tie everything together with a real works example.

コメント