Skip to content

Commit 7e0d413

Browse files
committed
Fix label spec
1 parent d4b72bb commit 7e0d413

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/superform/rails/components/label_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
let(:form) { Superform::Rails::Form.new(user) }
88
let(:field) { form.field(:first_name) }
99
let(:label) { described_class.new(field, attributes: { class: "form-label" }) }
10-
10+
1111
subject { label.call }
1212

1313
it "renders label with titleized field name" do
14-
expect(subject).to eq('<label for="user_first_name" class="form-label">First Name</label>')
14+
expect(subject).to eq('<label for="user_first_name" class="form-label">First name</label>')
1515
end
16-
end
16+
end

0 commit comments

Comments
 (0)