Skip to content

Commit

Permalink
don't use have_selector in form builder spec
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschilling committed Nov 18, 2014
1 parent 8672da2 commit 951f35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/form_builder_spec.rb
Expand Up @@ -52,7 +52,7 @@ def build_form(options = {}, form_object = Post.new, &block)
end

it "should generate a fieldset with a inputs class" do
expect(body).to have_tag("fieldset", attributes: { class: "inputs" })
expect(body).to have_selector("fieldset.inputs")
end
end

Expand All @@ -67,7 +67,7 @@ def build_form(options = {}, form_object = Post.new, &block)
end

it "should generate a fieldset with a inputs and custom class" do
expect(body).to have_tag("fieldset", attributes: { class: "inputs custom_class" })
expect(body).to have_selector("fieldset.inputs.custom_class")
end
end
end
Expand Down

0 comments on commit 951f35d

Please sign in to comment.