Skip to content

Commit

Permalink
Add test + fix method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone committed Sep 9, 2021
1 parent b3ff37d commit 5a1cbc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_component/form/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def time_zone_select(method, options = {}, html_options = {})

if defined?(ActionView::Helpers::Tags::ActionText)
def rich_text_area(method, options = {})
render_component(:rich_text_area, self, @object_name, method, objectify_options(options))
render_component(:rich_text_area, @object_name, method, objectify_options(options))
end
end

Expand Down
1 change: 1 addition & 0 deletions spec/view_component/form/builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
it { expect(form).to respond_to(:select).with(1..4).arguments }
it { expect(form).to respond_to(:submit).with(0..2).arguments }
it { expect(form).to respond_to(:telephone_field).with(1..2).arguments }
it { expect(form).to respond_to(:rich_text_area).with(1..2).arguments }
it { expect(form).to respond_to(:text_area).with(1..2).arguments }
it { expect(form).to respond_to(:text_field).with(1..2).arguments }
it { expect(form).to respond_to(:time_field).with(1..2).arguments }
Expand Down

0 comments on commit 5a1cbc3

Please sign in to comment.