@@ -97,46 +97,3 @@ def post_form_select_tag(tag_name, create_new = false)
9797 'but could not select it from options without creating a new tag.'
9898 end
9999 end
100-
101- def create_post ( body_text , title_text )
102- click_on 'Create Post'
103- fill_in 'Body' , with : body_text
104- fill_in 'Summarize your post with a title:' , with : title_text
105- post_form_select_tag ( tags ( :faq ) . name )
106-
107- assert_difference ( 'Post.count' ) do
108- click_on 'Save Post in '
109- end
110- end
111-
112- def create_thread ( comment_body_text , thread_title )
113- click_on 'Start new comment thread'
114- fill_in 'Your comment' , with : comment_body_text
115- fill_in 'Comment thread title' , with : thread_title
116-
117- assert_difference ( 'Comment.count' ) do
118- click_on 'Create thread'
119- end
120- end
121-
122- def create_comment ( comment_body_text )
123- click_on 'See the whole thread'
124- fill_in 'Your message' , with : comment_body_text
125-
126- assert_difference ( 'Comment.count' ) do
127- click_on 'Add reply'
128- end
129- end
130-
131- def assert_notification ( notification_title )
132- click_on 'Open notifications'
133- assert_text ( notification_title )
134- click_on 'Open notifications'
135- end
136-
137- def assert_no_notification ( notification_title )
138- click_on 'Open notifications'
139- assert_no_text ( notification_title )
140- click_on 'Open notifications'
141- end
142- end
0 commit comments