summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/google_code_import/importer_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-22 16:00:54 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-22 16:00:54 -0400
commit15a05be70d7652a98f870c5b5d02373dabf363e0 (patch)
tree970f32c6d3fb705c5626b503dee5e683049f5c8e /spec/lib/gitlab/google_code_import/importer_spec.rb
parent88328392918deeb459c1d991559f9b40b5fc1026 (diff)
downloadgitlab-ce-15a05be70d7652a98f870c5b5d02373dabf363e0.tar.gz
Fix Style/Blocks cop violations
Diffstat (limited to 'spec/lib/gitlab/google_code_import/importer_spec.rb')
-rw-r--r--spec/lib/gitlab/google_code_import/importer_spec.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/spec/lib/gitlab/google_code_import/importer_spec.rb b/spec/lib/gitlab/google_code_import/importer_spec.rb
index 67378328336..3879a6ab898 100644
--- a/spec/lib/gitlab/google_code_import/importer_spec.rb
+++ b/spec/lib/gitlab/google_code_import/importer_spec.rb
@@ -4,16 +4,15 @@ describe Gitlab::GoogleCodeImport::Importer do
let(:mapped_user) { create(:user, username: "thilo123") }
let(:raw_data) { JSON.parse(File.read(Rails.root.join("spec/fixtures/GoogleCodeProjectHosting.json"))) }
let(:client) { Gitlab::GoogleCodeImport::Client.new(raw_data) }
- let(:import_data) {
+ let(:import_data) do
{
- "repo" => client.repo("tint2").raw_data,
- "user_map" => {
- "thilo..." => "@#{mapped_user.username}"
- }
- }
- }
+ 'repo' => client.repo('tint2').raw_data,
+ 'user_map' => { 'thilo...' => "@#{mapped_user.username}" }
+ }
+ end
let(:project) { create(:project) }
- subject { described_class.new(project) }
+
+ subject { described_class.new(project) }
before do
project.create_import_data(data: import_data)