add very important spec

This commit is contained in:
Georg Gadinger 2022-07-23 12:29:17 +02:00
parent 434d176ebe
commit 58a3b89d67
1 changed files with 6 additions and 0 deletions

View File

@ -103,6 +103,12 @@ RSpec.describe User, type: :model do
include_examples "invalid email", "fritz.fantom@protonmail" include_examples "invalid email", "fritz.fantom@protonmail"
end end
describe "#to_param" do
subject { me.to_param }
it { is_expected.to eq me.screen_name }
end
# -- User::TimelineMethods -- # -- User::TimelineMethods --
shared_examples_for "result is blank" do shared_examples_for "result is blank" do