summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2015-07-20 00:53:43 +0200
committerSven Strickroth <email@cs-ware.de>2015-07-20 00:53:43 +0200
commit5eeab9f0a62f4843dcef2a7fb2f7f67610bef22d (patch)
treebd813b36c935eac50feeef332bf8cf5a33ede2f5 /spec
parentd0ef64ac8eedae3544e700d94a2373184c9597ee (diff)
downloadgitlab-ce-5eeab9f0a62f4843dcef2a7fb2f7f67610bef22d.tar.gz
GoogleCode importer: Do not care about casing of image file extensions
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'spec')
-rw-r--r--spec/fixtures/GoogleCodeProjectHosting.json5
-rw-r--r--spec/lib/gitlab/google_code_import/importer_spec.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/spec/fixtures/GoogleCodeProjectHosting.json b/spec/fixtures/GoogleCodeProjectHosting.json
index d05e77271ae..67bb3bae5b7 100644
--- a/spec/fixtures/GoogleCodeProjectHosting.json
+++ b/spec/fixtures/GoogleCodeProjectHosting.json
@@ -382,6 +382,11 @@
"fileName" : "screenshot.png",
"fileSize" : 0,
"mimetype" : "image/png"
+ }, {
+ "attachmentId" : "001",
+ "fileName" : "screenshot1.PNG",
+ "fileSize" : 0,
+ "mimetype" : "image/x-png"
} ]
}, {
"id" : 1,
diff --git a/spec/lib/gitlab/google_code_import/importer_spec.rb b/spec/lib/gitlab/google_code_import/importer_spec.rb
index c53ddeb87b5..f49cbb7f532 100644
--- a/spec/lib/gitlab/google_code_import/importer_spec.rb
+++ b/spec/lib/gitlab/google_code_import/importer_spec.rb
@@ -65,6 +65,7 @@ describe Gitlab::GoogleCodeImport::Importer do
expect(issue.description).to include('all the best!')
expect(issue.description).to include('[tint2_task_scrolling.diff](https://storage.googleapis.com/google-code-attachments/tint2/issue-169/comment-0/tint2_task_scrolling.diff)')
expect(issue.description).to include('![screenshot.png](https://storage.googleapis.com/google-code-attachments/tint2/issue-169/comment-0/screenshot.png)')
+ expect(issue.description).to include('![screenshot1.PNG](https://storage.googleapis.com/google-code-attachments/tint2/issue-169/comment-0/screenshot1.PNG)')
end
it "imports issue comments" do