Sha256: 56f5bd117ddce6989469e655c91cb2c7d209e24d90dc87489798b1d9de86eb85

Contents?: true

Size: 906 Bytes

Versions: 11

Compression:

Stored size: 906 Bytes

Contents

# -*- coding: utf-8 -*-
require 'acceptance_helper'

feature 'カテゴリ機能の動作' do
	scenario 'カテゴリ機能が動く' do
		enable_plugin('category')

		visit '/'
		click_link '追記'

		within('span.year') { fill_in "year", with: '2001' }
		within('span.month') { fill_in "month", with: '4' }
		within('span.day') { fill_in "day", with: '23' }
		within('div.textarea') {
			fill_in "body", with: <<-BODY
![category] さて、テストである。
とりあえず自前の環境ではちゃんと動いているが、きっと穴がいっぱいあるに違いない:-P

![tdiary] もう一度テストである。
本当に動くかな?
BODY
		}

		click_button "追記"

		visit '/'
		page.find('a', text: "category").click
		expect(page).to have_content 'Categories'
	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_category_spec.rb
tdiary-4.2.0 spec/acceptance/view_category_spec.rb
tdiary-4.1.3 spec/acceptance/view_category_spec.rb
tdiary-4.1.2 spec/acceptance/view_category_spec.rb
tdiary-4.1.1 spec/acceptance/view_category_spec.rb
tdiary-4.1.0 spec/acceptance/view_category_spec.rb
tdiary-4.1.0.20141126 spec/acceptance/view_category_spec.rb
tdiary-4.0.5.1 spec/acceptance/view_category_spec.rb
tdiary-4.0.5 spec/acceptance/view_category_spec.rb
tdiary-4.0.4 spec/acceptance/view_category_spec.rb
tdiary-4.0.3 spec/acceptance/view_category_spec.rb