Browse Source

Rename controller helper

pull/31/head
baarkerlounger 4 years ago
parent
commit
ca3c8c5956
  1. 4
      Gemfile.lock
  2. 2
      app/helpers/question_attribute_helper.rb
  3. 2
      spec/helpers/question_attribute_helper_spec.rb

4
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)

2
app/helpers/stimulus_controller_attribute_helper.rb → 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),

2
spec/helpers/stimulus_controller_attribute_helper_spec.rb → 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") }
Loading…
Cancel
Save