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 b320028 commit 0867cedCopy full SHA for 0867ced
test/selector_assertions_test.rb
@@ -280,10 +280,20 @@ def test_feed_item_encoded
280
end
281
282
def test_body_not_present_in_empty_document
283
- render_html ''
+ render_html '<div></div>'
284
assert_select 'body', 0
285
286
287
+ def test_body_class_can_be_tested
288
+ render_html '<body class="foo"></body>'
289
+ assert_select '.foo'
290
+ end
291
+
292
+ def test_body_class_can_be_tested_with_html
293
+ render_html '<html><body class="foo"><div></div></body></html>'
294
295
296
297
def document_root_element
298
@html_document
299
0 commit comments