mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add a test for user_registered?
This commit is contained in:
parent
b15c1abd2e
commit
e334a6dec3
1 changed files with 9 additions and 1 deletions
|
|
@ -1464,7 +1464,15 @@ describe Conference do
|
|||
end
|
||||
|
||||
context 'user registered' do
|
||||
pending "isn't tested yet"
|
||||
before do
|
||||
registration = create(:registration)
|
||||
subject.registrations << registration
|
||||
user.registrations << registration
|
||||
end
|
||||
|
||||
it '#user_registered? is true' do
|
||||
expect(subject.user_registered? user).to be true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue