1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
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
|