Sha256: 61657959db330929a1ec438b9321fbee94aaf5b76d28b17b36dcbc2452c2f03e

Contents?: true

Size: 894 Bytes

Versions: 11

Compression:

Stored size: 894 Bytes

Contents

# -*- 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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/tdiary-4.2.0/spec/acceptance/view_referer_spec.rb
tdiary-4.2.0 spec/acceptance/view_referer_spec.rb
tdiary-4.1.3 spec/acceptance/view_referer_spec.rb
tdiary-4.1.2 spec/acceptance/view_referer_spec.rb
tdiary-4.1.1 spec/acceptance/view_referer_spec.rb
tdiary-4.1.0 spec/acceptance/view_referer_spec.rb
tdiary-4.1.0.20141126 spec/acceptance/view_referer_spec.rb
tdiary-4.0.5.1 spec/acceptance/view_referer_spec.rb
tdiary-4.0.5 spec/acceptance/view_referer_spec.rb
tdiary-4.0.4 spec/acceptance/view_referer_spec.rb
tdiary-4.0.3 spec/acceptance/view_referer_spec.rb