我希望这些测试不会“失败”,而是标记为待定。也许我没有专门针对Capybara使用待定或正确的指令?
feature 'Tenant Scoping ' do
scenario "displays only Tenant A's things" do
pending
end
scenario "displays only Tenant B's things" do
pending
end
end
以下是运行时的输出:
Tenant Scoping
displays only Tenant A's things (FAILED - 1)
displays only Tenant B's things (FAILED - 2)
Failures:
1) Tenant Scoping displays only Tenant A's things FIXED
Expected pending 'No reason given' to fail. No Error was raised.
# ./spec/features/tenants/scopingtest_spec.rb:3
2) Tenant Scoping displays only Tenant B's things FIXED
Expected pending 'No reason given' to fail. No Error was raised.
# ./spec/features/tenants/scopingtest_spec.rb:7
Finished in 0.04047 seconds (files took 1.62 seconds to load)
2 examples, 2 failures