Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier committed Jan 5, 2022
1 parent a4ff75f commit 251072a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/view_component/form/error_message_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def name
context "with simple args" do
it { expect(subject.method_errors).to eq(["Can't be blank", "Is too short (minimum is 2 characters)"]) }
it { expect(subject.render?).to be true }

it do
expect(component).to eq_html <<~HTML
<div>Can't be blank<br>Is too short (minimum is 2 characters)</div>
Expand Down
2 changes: 1 addition & 1 deletion spec/view_component/form/hint_component_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

RSpec.describe ViewComponent::Form::HintComponent, type: :component do
subject { described_class.new(form, object_name, :birth_date, 'this is my hint for you', options) }
subject { described_class.new(form, object_name, :birth_date, "this is my hint for you", options) }

let(:object) { OpenStruct.new }
let(:form) { form_with(object) }
Expand Down

0 comments on commit 251072a

Please sign in to comment.