From 58a3b89d674bcc053fcb1b969d2cf31d69334299 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sat, 23 Jul 2022 12:29:17 +0200 Subject: [PATCH] add very important spec --- spec/models/user_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index cd8be3e0..f1bb145e 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -103,6 +103,12 @@ RSpec.describe User, type: :model do include_examples "invalid email", "fritz.fantom@protonmail" end + describe "#to_param" do + subject { me.to_param } + + it { is_expected.to eq me.screen_name } + end + # -- User::TimelineMethods -- shared_examples_for "result is blank" do