Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-04-04 18:10:21 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-04-06 21:47:07 +0300
commit1f404065ca602593dc18aa051515fd88132ddfdf (patch)
treee1fb01a2584c2137ad603500fc22652ab099bb46 /spec/lib/microsoft_teams/activity_spec.rb
parent05f69ef21246f1a2c0b83540d3e205c9e4d77819 (diff)
adds relevant tests
Diffstat (limited to 'spec/lib/microsoft_teams/activity_spec.rb')
-rw-r--r--spec/lib/microsoft_teams/activity_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/lib/microsoft_teams/activity_spec.rb b/spec/lib/microsoft_teams/activity_spec.rb
new file mode 100644
index 00000000000..7890ae2e7b0
--- /dev/null
+++ b/spec/lib/microsoft_teams/activity_spec.rb
@@ -0,0 +1,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