mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
add very important spec
This commit is contained in:
parent
434d176ebe
commit
58a3b89d67
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue