我已经尝试过p page
并且p page.source
还:
(rdb:1) 查找 ('页面') (rdb:1) 找到 ('bosy') (rdb:1) 找到 ('body') (rdb:1) 找到 (rdb:1) p 页 (rdb:1) p html (rdb:1) p 源 (rdb:1) p page.source
但我得到的只是以下方面的变化:
*** Unknown command: "page". Try "help".
代码:
describe "For a user who is not logged in." do
context "Visiting the home page." do
before(:each) { visit root_path }
describe "The page." do
subject { page }
debugger
1
it "Has a 'login' link." do
should have_link('Sign In')
end
it "does NOT have a 'logout' link." do
should have_no_link('Logout')
end
end
end
end