Use #be_html_eql matcher in SettingsHelper spec

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2639/head
Alex Coles 10 years ago
parent 1f42f12747
commit e1ef863a03
  1. 8
      spec/helpers/settings_helper_spec.rb

@ -119,10 +119,10 @@ describe SettingsHelper, type: :helper do
it_behaves_like 'wrapped in container', 'text-field-container'
it 'should output element' do
expect(output).to include %{
expect(output).to be_html_eql(%{
<input class="custom-class form--text-field"
id="settings_field" name="settings[field]" type="text" value="important value" />
}.squish
}).at_path('input')
end
end
@ -140,10 +140,10 @@ describe SettingsHelper, type: :helper do
it_behaves_like 'wrapped in container', 'text-area-container'
it 'should output element' do
expect(output).to include %{
expect(output).to be_html_eql(%{
<textarea class="custom-class form--text-area" id="settings_field" name="settings[field]">
important text</textarea>
}.strip
}).at_path('textarea')
end
end

Loading…
Cancel
Save