Hartl 教程的第 5 章即将结束。在上一节(5.4)中,我创建了一个用户注册页面。现在我需要通过运行 rspec 检查是否已正确创建了用户注册静态页面:
$ bundle exec rspec spec/
我收到了这个通知:
Pending:
StaticPagesHelper add some examples to (or delete) /Users/kelvinyu/rails_projects/sample_app/spec/helpers/static_pages_helper_spec.rb
# No reason given
# ./spec/helpers/static_pages_helper_spec.rb:12
static_pages/help.html.erb sample
# No reason given
# ./spec/views/static_pages/help.html.erb_spec.rb:4
static_pages/home.html.erb add some examples to (or delete) /Users/kelvinyu/rails_projects/sample_app/spec/views/static_pages/home.html.erb_spec.rb
# No reason given
# ./spec/views/static_pages/home.html.erb_spec.rb:4
Finished in 0.28953 seconds
16 examples, 0 failures, 3 pending
Randomized with seed 27698
不确定这个“待定”状态的真正含义以及我是否有错误。如果是这样,解决此问题的最佳方法是什么?如果需要更多信息,请告诉我。