2019-08-22 06:57:44 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-04-04 11:10:21 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 14:09:03 -04:00
|
|
|
RSpec.describe MicrosoftTeams::Activity do
|
2017-04-04 11:10:21 -04:00
|
|
|
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
|