Sha256: c7a774863af149a872deb5993834b218da38be52a95f7d3de8850e597a6e311d

Contents?: true

Size: 697 Bytes

Versions: 1

Compression:

Stored size: 697 Bytes

Contents

require 'spec_helper'

describe Mavenlink::Post, stub_requests: true do
  it_should_behave_like 'model', 'posts'

  describe 'validations' do
    it { should validate_presence_of :message }
    it { should validate_presence_of :workspace_id }
  end

  describe 'associations' do
    it { should respond_to :subject }
    it { should respond_to :user }
    it { should respond_to :workspace }
    it { should respond_to :story }
    it { should respond_to :replies }
    it { should respond_to :newest_reply }
    it { should respond_to :newest_reply_user }
    it { should respond_to :recipients }
    it { should respond_to :google_documents }
    it { should respond_to :attachments }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mavenlink-0.0.1 spec/lib/mavenlink/post_spec.rb