topic spec owner

This commit is contained in:
Devin Howard 2015-12-18 09:28:28 +08:00
parent d2680fd9f3
commit ca282f7879

View file

@ -51,6 +51,7 @@ RSpec.describe Topic, type: :model do
end
context 'permssions' do
let(:owner) { create :user }
let(:other_user) { create :user }
let(:topic) { create :topic, user: owner, permission: :commons }
let(:private_topic) { create :topic, user: owner, permission: :private }