Sha256: b4e225a3c93642074ee8ebb1349f07da15e9068778028467c24dea30072a36dc
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe Conversations::Conversation do let(:conversation) { Factory(:conversation) } before { @user = Factory.create(:user) } context "when subject given" do it { conversation.should be_valid } end context "when subject empty" do before { conversation.subject = nil } it { conversation.should_not be_valid } end context "when tokens_to are given" do before {conversation.users << @user } it { conversation.user_ids.should include(@user.id) } end context "when user_ids are empty" do before { conversation.user_ids = nil } it { conversation.user_ids.should_not include(@user.id) } end end
Version data entries
4 entries across 4 versions & 1 rubygems