Sha256: 3523b268de7f2459041eb7d0fa29bc76fccfbc19b017d522061275ebbc7c53d7

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

require 'spec_helper'

describe Conversations::UserConversation do
  let(:user_conversation) { Factory(:user_conversation) }
  
  before { @user = Factory.create(:user) }

  context "when subject given" do
    it { user_conversation.should be_valid }
  end
  
  context "when user empty" do
    before { user_conversation.user = nil }
    it { user_conversation.should_not be_valid }
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
conversations-0.0.2.2 spec/models/user_conversation_spec.rb
conversations-0.0.2.1 spec/models/user_conversation_spec.rb
conversations-0.0.2 spec/models/user_conversation_spec.rb
conversations-0.0.1 spec/models/user_conversation_spec.rb