debian-mirror-gitlab/spec/lib/microsoft_teams/activity_spec.rb
2022-10-11 01:57:18 +05:30

18 lines
486 B
Ruby

# frozen_string_literal: true
require 'fast_spec_helper'
RSpec.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