Improve spec.

This commit is contained in:
Guo Xiang Tan 2017-01-03 15:36:36 +08:00
parent ad4a96d387
commit c68bcfeb72
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ describe "Groups" do
describe 'owners' do describe 'owners' do
let(:user1) { Fabricate(:user, last_seen_at: Time.zone.now) } let(:user1) { Fabricate(:user, last_seen_at: Time.zone.now) }
let(:user2) { Fabricate(:user, last_seen_at: Time.zone.now - 1 .day) } let(:user2) { Fabricate(:user, last_seen_at: Time.zone.now - 1 .day) }
let(:group) { Fabricate(:group, users: [user1, user2]) } let(:group) { Fabricate(:group, users: [user, user1, user2]) }
it 'should return the right list of owners' do it 'should return the right list of owners' do
group.add_owner(user1) group.add_owner(user1)