Running via Spring preloader in process 161709
Run options: --seed 39189
# Running:
Run options: --seed 39189
# Running:
Finished in 0.005780s, 0.0000 runs/s, 0.0000 assertions/s.
0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
Finished in 0.042032s, 0.0000 runs/s, 0.0000 assertions/s.
0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
1 require 'test_helper'
1
2 class StaticPagesControllerTest < ActionDispatch::IntegrationTest
3 test "should get home" do
4 get static_pages_home_url
5 assert_response :success
6 end
7
8 test "should get help" do
9 get static_pages_help_url
10 assert_response :success
11 end
12
13 end
书中第 80 页,pdf98 页,是直接 $ rails test
,我就又加上了文件名 $ rails test static_pages_controller_test.rb
,也是一样的结果。