你知道任何通过使用键映射来添加或删除焦点标记来帮助我的插件:focus: true
如下所示。
it "has added a feed item", focus: true do
page[ cursor ].should have_css "#activities .feed-item"
end
it "shows question title in feed" do
within ".feed-item" do
page.should have_content "Where is wally"
end
end