我的页面模型如下所示:
class ViewPage < SitePrism::Page
set_url "events{/event_id}/whosecoming"
element :flash_messages, 'div#flash_messages'
section :event_info, EventInfoSection, 'div#event'
iframe :map_iframe, MapIframe, '#map'
section :hasher_listing, HasherListing, 'div#hashers'
end
当我使用
expect(ViewPage.new).to be_displayed
它与观察到的 'events/1/whosecoming' 的 url 不匹配
页面上的所有内容都加载得很好,我相信我只是不明白 set_url 应该如何与参数化一起使用。