diff --git a/Gemfile.lock b/Gemfile.lock index b21879881..328d2a9ef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -26,7 +26,7 @@ GIT GIT remote: https://github.com/rspec/rspec-rails.git - revision: fdcd1df0b13f9b6547336b4d37dffb66f70f7228 + revision: 3f0e35085f5765decf96fee179ec9a2e132a67c1 branch: main specs: rspec-rails (5.1.0.pre) @@ -294,7 +294,7 @@ GEM actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) - stimulus-rails (0.6.1) + stimulus-rails (0.7.0) rails (>= 6.0.0) thor (1.1.0) turbo-rails (0.8.1) diff --git a/app/helpers/stimulus_controller_attribute_helper.rb b/app/helpers/question_attribute_helper.rb similarity index 96% rename from app/helpers/stimulus_controller_attribute_helper.rb rename to app/helpers/question_attribute_helper.rb index fe254e85b..1010591f0 100644 --- a/app/helpers/stimulus_controller_attribute_helper.rb +++ b/app/helpers/question_attribute_helper.rb @@ -1,4 +1,4 @@ -module StimulusControllerAttributeHelper +module QuestionAttributeHelper def stimulus_html_attributes(question) attribs = [ numeric_question_html_attributes(question), diff --git a/spec/helpers/stimulus_controller_attribute_helper_spec.rb b/spec/helpers/question_attribute_helper_spec.rb similarity index 97% rename from spec/helpers/stimulus_controller_attribute_helper_spec.rb rename to spec/helpers/question_attribute_helper_spec.rb index 3ae54d305..aec36ea31 100644 --- a/spec/helpers/stimulus_controller_attribute_helper_spec.rb +++ b/spec/helpers/question_attribute_helper_spec.rb @@ -1,6 +1,6 @@ require "rails_helper" -RSpec.describe StimulusControllerAttributeHelper do +RSpec.describe QuestionAttributeHelper do let(:form) { Form.new(2021, 2022) } let(:questions) { form.questions_for_page("rent") }