Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何在 Rails 中为 Post Edit Page 进行功能测试?我有一个帖子列表,每个帖子都有一个编辑链接。谢谢你。
你可以通过 RSPEC-
def postedit do before { visit posteditpage_path } subject { post } def posteach do it {should_contain editlink_path} end end end