Sha256: a176750bdfadfcf4fa49981e8f001108a64a7650916395d2fc6edc874676afad

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

require 'spec_helper'

describe Teamwork::Client::Message do

  before(:each) { authenticate }

  context "#project_messages" do

    it "should respond" do
      expect(Teamwork.respond_to?(:project_messages)).to eq(true)
    end

    it "should get messages" do
      expect(Teamwork.project_messages(Teamwork.projects.first.id)).to be_a(Array)
    end

  end

  context "#get_message" do

    let(:message_id) { ENV["MESSAGE_ID"] }

    it "should respond" do
      expect(Teamwork.respond_to?(:get_message)).to eq(true)
    end

    it "should get messages" do
      expect(Teamwork.get_message(message_id)).to be_a(Teamwork::Thing)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
teamworkpm-2.0.0 spec/teamwork/client/message_spec.rb