please the hound

[ci skip]
pull/2681/head
Florian Kraft 10 years ago
parent ab54a57165
commit 91440250ab
  1. 10
      spec/lib/tabular_form_builder_spec.rb

@ -504,11 +504,17 @@ JJ Abrams</textarea>
subject(:output) { builder.label :name }
it 'should output element' do
expect(output).to be_html_eql %{<label class="form--label" for="user_name" title="Name">Name</label>}
expect(output).to be_html_eql %{
<label class="form--label"
for="user_name"
title="Name">
Name
</label>
}.squish
end
describe 'with existing attributes' do
subject(:output) { builder.label :name, 'Fear', class: 'sharknado', title: "Fear" }
subject(:output) { builder.label :name, 'Fear', class: 'sharknado', title: 'Fear' }
it 'should keep associated classes' do
expect(output).to be_html_eql %{

Loading…
Cancel
Save