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 8e0df8d commit 0dcc01bCopy full SHA for 0dcc01b
lib/generators/rspec/scaffold/templates/index_spec.rb
@@ -18,7 +18,11 @@
18
19
it "renders a list of <%= ns_table_name %>" do
20
render
21
+<% if Rails.version.to_f < 8.1 -%>
22
cell_selector = 'div>p'
23
+<% else -%>
24
+ cell_selector = 'div>div>div'
25
+<% end -%>
26
<% for attribute in output_attributes -%>
27
assert_select cell_selector, text: Regexp.new(<%= value_for(attribute) %>.to_s), count: 2
28
<% end -%>
0 commit comments