From 803922de8d8aa226773c5500a8e96c418d0cf262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20J=C3=A4ggi?= Date: Wed, 18 Dec 2024 16:38:44 +0100 Subject: [PATCH] Fix broken specs --- spec/models/wizards/signup/abo_basic_login_wizard_spec.rb | 2 +- spec/models/wizards/signup/abo_magazin_wizard_spec.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/models/wizards/signup/abo_basic_login_wizard_spec.rb b/spec/models/wizards/signup/abo_basic_login_wizard_spec.rb index fda33ae9d..dad51be30 100644 --- a/spec/models/wizards/signup/abo_basic_login_wizard_spec.rb +++ b/spec/models/wizards/signup/abo_basic_login_wizard_spec.rb @@ -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 diff --git a/spec/models/wizards/signup/abo_magazin_wizard_spec.rb b/spec/models/wizards/signup/abo_magazin_wizard_spec.rb index c976ea1e6..d752c9a83 100644 --- a/spec/models/wizards/signup/abo_magazin_wizard_spec.rb +++ b/spec/models/wizards/signup/abo_magazin_wizard_spec.rb @@ -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