# -*- coding: utf-8 -*- require 'acceptance_helper' feature 'リンク元の表示', exclude_selenium: true do scenario '日表示にリンク元が表示されている' do append_default_diary visit '/' today = Date.today.strftime("%Y年%m月%d日") page.find('h2', text: today).click_link today within('div.day') { expect(page).to have_css('div[class="refererlist"]') within('div.refererlist') { expect(page).to have_content "http://www.example.com" } } end scenario '更新画面にリンク元が表示されている' do append_default_diary visit "/" today = Date.today.strftime("%Y年%m月%d日") page.find('h2', text: today).click_link today within('div.day div.refererlist') { expect(page).to have_link "http://www.example.com" } end end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End: # vim: ts=3