Fix TabularFormBuilder HTML matching

Use #be_html_eql matcher in TabularFormBuilder spec (see 1f42f127)
to avoid relying on specific order of attributes.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/3421/head
Alex Coles 9 years ago
parent db078e0964
commit acb2aa7eb1
  1. 4
      spec/lib/tabular_form_builder_spec.rb

@ -306,14 +306,14 @@ JJ Abrams</textarea>
it_behaves_like 'wrapped in container', 'radio-button-container'
it 'should output element' do
expect(output).to include %{
expect(output).to be_html_eql(%{
<input class="custom-class form--radio-button"
id="user_name_john"
name="user[name]"
title="Name"
type="radio"
value="John" />
}.squish
}).at_path('input')
end
end

Loading…
Cancel
Save