diff --git a/spec/lib/decidim/direct_verifications/user_processor_spec.rb b/spec/lib/decidim/direct_verifications/user_processor_spec.rb index 8f1d877..8f5e4e1 100644 --- a/spec/lib/decidim/direct_verifications/user_processor_spec.rb +++ b/spec/lib/decidim/direct_verifications/user_processor_spec.rb @@ -34,22 +34,24 @@ module DirectVerifications context "when add processed" do it "has unique emails per type" do - subject.send(:add_processed, :registered, "em@il.com") - subject.send(:add_processed, :registered, "em@il.com") + subject.add_processed(:registered, "em@il.com") + subject.add_processed(:registered, "em@il.com") expect(subject.processed[:registered].count).to eq(1) - subject.send(:add_processed, :authorized, "em@il.com") - subject.send(:add_processed, :authorized, "em@il.com") + + subject.add_processed(:authorized, "em@il.com") + subject.add_processed(:authorized, "em@il.com") expect(subject.processed[:authorized].count).to eq(1) end end context "when add errors" do it "has unique emails per type" do - subject.send(:add_error, :registered, "em@il.com") - subject.send(:add_error, :registered, "em@il.com") + subject.add_error(:registered, "em@il.com") + subject.add_error(:registered, "em@il.com") expect(subject.errors[:registered].count).to eq(1) - subject.send(:add_error, :authorized, "em@il.com") - subject.send(:add_error, :authorized, "em@il.com") + + subject.add_error(:authorized, "em@il.com") + subject.add_error(:authorized, "em@il.com") expect(subject.errors[:authorized].count).to eq(1) end end