Sha256: c8ab001b2c310ed274ce7bac8e79e9778604529f33932621f477f65538451007
Contents?: true
Size: 960 Bytes
Versions: 2
Compression:
Stored size: 960 Bytes
Contents
require 'spec_helper' describe GrooveHQ::Client::Messages, integration: true do let(:client) { GrooveHQ::Client.new } describe "#create_message" do it "successfully creates message" do body_text = "Some body text" response = client.create_message('8', body: body_text) expect(response.body).to eq body_text end end describe "#message" do let(:response) { client.message('25662284') } it "successfully gets message" do expect(response.data).to have_attributes(created_at: String) end it "gets the right message info" do expect(response.body).to include("Hi Andrey,") end end describe "#messages" do let(:response) { client.messages('8') } it "successfully gets messages" do expect(response).to be_instance_of GrooveHQ::ResourceCollection end it "gets the right messages info" do expect(response.first.body).to include("Whatsup") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
groovehq-1.0.6 | spec/groovehq/integration/messages_spec.rb |
groovehq-1.0.5 | spec/groovehq/integration/messages_spec.rb |