We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9e02a commit 3eae24aCopy full SHA for 3eae24a
1 file changed
test/system/post_system_test.rb
@@ -133,6 +133,21 @@ class PostSystemTest < ApplicationSystemTestCase
133
end
134
135
136
+ test 'Anyone can view questions in the list' do
137
+ post=posts(:question_one)
138
+ visit post_url(post)
139
+
140
+ # Check that the post is displayed somewhere on the page
141
+ assert_text post.title
142
+ assert_text post.body
143
144
+ # Navigate to the question list for this category
145
+ click_on 'Posts'
146
147
+ # Check that there is at least one question listed
148
+ assert_no_text '0 posts'
149
+ end
150
151
test 'Anyone can sort answers' do
152
post = posts(:question_one)
153
visit post_url(post)
0 commit comments