Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Aug 20, 2024
1 parent 8a00991 commit a26945b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_register_on_fields.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.well= t('groups.self_inscription.form.register_on_info.oct')
.row.mb-2
.col-md-2.text-md-end
= SelfInscription.human_attribute_name(:register_on)
= f.object.class.human_attribute_name(:register_on)
.col-md
= f.object.register_on_options.first.last
- else
Expand Down
2 changes: 1 addition & 1 deletion spec/views/shared/_register_on_fields.html.haml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
describe "shared/_register_on_fields.html.haml" do
let(:group) { groups(:bluemlisalp_mitglieder) }
let(:current_user) { people(:top_leader) }
let(:model) { SelfInscription.new(group: group, person: Person.new) }
let(:model) { Wizards::Steps::Signup::Sektion::VariousFields.new(nil) }
let(:form_builder) { StandardFormBuilder.new(:group, model, view, {}) }
let(:dom) { Capybara::Node::Simple.new(@rendered) }

Expand Down

0 comments on commit a26945b

Please sign in to comment.