Merge pull request #660 from bgeuken/conference_model

Conference model
This commit is contained in:
Henne Vogelsang 2015-07-02 16:28:06 +02:00
commit 68efa06696
2 changed files with 46 additions and 40 deletions

View file

@ -1463,8 +1463,22 @@ describe Conference do
end
end
context 'user is nil' do
it '#user_registered? is false' do
expect(subject.user_registered? user).to be false
end
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