Improvements in registration specs
Check for true and not truthy in registration model spec. Cover general cases in conf registration controller. Add test for flash in new action when ichain is set and user is not signed in.
This commit is contained in:
parent
5bff60ec7d
commit
7e4d91adaf
3 changed files with 88 additions and 37 deletions
|
|
@ -59,7 +59,7 @@ describe Registration do
|
|||
describe '#subscribe_to_conference' do
|
||||
it 'subscribes to conference' do
|
||||
expect(subject).to receive(:subscribe_to_conference)
|
||||
expect(subject.user.subscribed?(subject.conference)).to be_truthy
|
||||
expect(subject.user.subscribed?(subject.conference)).to be true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue