~ubuntu-branches/ubuntu/wily/tdiary/wily

« back to all changes in this revision

Viewing changes to spec/acceptance/save_conf_comment_spec.rb

  • Committer: Package Import Robot
  • Author(s): Hideki Yamane
  • Date: 2013-05-19 16:14:01 UTC
  • mfrom: (12.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130519161401-hf5oyr8g8a94fsew
Tags: 3.2.2-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
                visit '/update.rb?conf=comment'
10
10
                select '非表示', :from => 'show_comment'
11
11
 
12
 
                click_button "OK"
13
 
                within('title') { page.should have_content('(設定完了)') }
 
12
                page.all('div.saveconf').first.click_button "OK"
 
13
                # within('title') { page.should have_content('(設定完了)') }
14
14
 
15
15
                click_link '最新'
16
16
                within('div.day div.comment') {
37
37
                visit '/update.rb?conf=comment'
38
38
                fill_in 'comment_limit', :with => '1'
39
39
 
40
 
                click_button "OK"
41
 
                within('title') { page.should have_content('(設定完了)') }
 
40
                page.all('div.saveconf').first.click_button "OK"
 
41
                # within('title') { page.should have_content('(設定完了)') }
42
42
 
43
43
                click_link '最新'
44
44
                within('div.day div.comment div.commentshort') {
48
48
                        page.should have_content "こんばんは!こんばんは!"
49
49
                }
50
50
 
51
 
                click_link "#{Date.today.strftime('%Y年%m月%d日')}"
 
51
                today = Date.today.strftime('%Y年%m月%d日')
 
52
                page.find('h2', :text => today).click_link today
52
53
                within('div.day div.comment div.commentbody') { 
53
54
                        page.should have_content "alpha"
54
55
                        page.should have_content "bravo"
64
65
                visit '/update.rb?conf=comment'
65
66
                fill_in 'comment_limit_per_day', :with => '1'
66
67
 
67
 
                click_button "OK"
68
 
                within('title') { page.should have_content('(設定完了)') }
 
68
                page.all('div.saveconf').first.click_button "OK"
 
69
                # within('title') { page.should have_content('(設定完了)') }
69
70
 
70
71
                click_link '最新'
71
 
                click_link "#{Date.today.strftime('%Y年%m月%d日')}"
 
72
                today = Date.today.strftime('%Y年%m月%d日')
 
73
                page.find('h2', :text => today).click_link today
72
74
                within('div#comment-form-section') {
73
75
                        within('div.caption') { page.should have_content('本日の日記はツッコミ数の制限を越えています。') }
74
76
                        page.should have_no_css('form')