Skip to content

Commit

Permalink
Fix broken specs
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi authored and amaierhofer committed Dec 18, 2024
1 parent d22e508 commit 5cb3676
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/wizards/signup/abo_basic_login_wizard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def build(params = required_attrs)
end

it "returns true if user does not have login" do
allow(people(:admin)).to receive(:login?).and_return(false)
allow(people(:mitglied)).to receive(:login?).and_return(false)
expect(wizard.member_or_applied?).to be_falsy
end
end
Expand Down
1 change: 1 addition & 0 deletions spec/models/wizards/signup/abo_magazin_wizard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def build(params = required_attrs)
end

it "returns true when user has abonnent role" do
Group::AboMagazin::Abonnent.create!(person: people(:mitglied), group: groups(:abo_die_alpen))
expect(wizard.member_or_applied?).to be_truthy
end

Expand Down

0 comments on commit 5cb3676

Please sign in to comment.