Skip to content

Commit a9742d0

Browse files
committed
Render once per example in filter form spec
1 parent 3b18513 commit a9742d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/components/filters/filter_form_component_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def render_form(form_options = options)
5050
end
5151

5252
describe "basic rendering" do
53-
before { render_form }
54-
5553
it "renders an Add filter select advertising the query's filters" do
54+
render_form
55+
5656
# Sanity: at least the well-known UserQuery filters are advertised
5757
# (option text is `User.human_attribute_name(filter.name)`).
5858
expect(page).to have_select "add_filter_select",

0 commit comments

Comments
 (0)