summaryrefslogtreecommitdiff
path: root/spec/lib/microsoft_teams/activity_spec.rb
blob: 7890ae2e7b002b8122eb28f198ce6ec855f8763f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'

describe MicrosoftTeams::Activity do
  subject { described_class.new(title: 'title', subtitle: 'subtitle', text: 'text', image: 'image') }

  describe '#prepare' do
    it 'returns the correct JSON object' do
      expect(subject.prepare).to eq({
        'activityTitle' => 'title',
        'activitySubtitle' => 'subtitle',
        'activityText' => 'text',
        'activityImage' => 'image'
      })
    end
  end
end