
256
付録
C
サンプルコードを動かすための環境構築
#
特定のファイルの中のテストだけを実行
$ rake test test/models/user_test.rb
Started
11/11: [=============================================] 100% Time: 00:00:00, Time:
00:00:00
Finished in 0.09250s
11 tests, 15 assertions, 0 failures, 0 errors, 0 skips
rspec
rake test:units
test/models
test/helpers
test/unit
Railshttps://railsguides.jp/testing.html
C.
3
.
5
試してみよう
...