summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-06-14 10:23:00 +0200
committerJames Lopez <james@jameslopez.es>2016-06-14 10:23:00 +0200
commit9be06bbbb40a64b060fe9042fc84817551dfed08 (patch)
treea503b33dc6dd181e2cf56d5965fc1eb822b4d9f9 /spec/lib
parentf6ed7c8ff8313826a08aace346f30facc55a202f (diff)
downloadgitlab-ce-9be06bbbb40a64b060fe9042fc84817551dfed08.tar.gz
fix indents
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/import_export/reader_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/import_export/reader_spec.rb b/spec/lib/gitlab/import_export/reader_spec.rb
index d7029c2efe6..109522fa626 100644
--- a/spec/lib/gitlab/import_export/reader_spec.rb
+++ b/spec/lib/gitlab/import_export/reader_spec.rb
@@ -57,25 +57,25 @@ describe Gitlab::ImportExport::Reader, lib: true do
end
it 'generates the correct hash for a relation with included attributes' do
- setup_yaml(project_tree: [:issues], included_attributes: {issues: [:name, :description]})
+ setup_yaml(project_tree: [:issues], included_attributes: { issues: [:name, :description] })
expect(described_class.new(shared: shared).project_tree).to match(include: [{ issues: { only: [:name, :description] } }])
end
it 'generates the correct hash for a relation with excluded attributes' do
- setup_yaml(project_tree: [:issues], excluded_attributes: {issues: [:name]})
+ setup_yaml(project_tree: [:issues], excluded_attributes: { issues: [:name] })
expect(described_class.new(shared: shared).project_tree).to match(include: [{ issues: { except: [:name] } }])
end
it 'generates the correct hash for a relation with both excluded and included attributes' do
- setup_yaml(project_tree: [:issues], excluded_attributes: {issues: [:name]}, included_attributes: {issues: [:description]})
+ setup_yaml(project_tree: [:issues], excluded_attributes: { issues: [:name] }, included_attributes: { issues: [:description] })
- expect(described_class.new(shared: shared).project_tree).to match(include: [{ issues: { except: [:name], only: [:description]} }])
+ expect(described_class.new(shared: shared).project_tree).to match(include: [{ issues: { except: [:name], only: [:description] } }])
end
it 'generates the correct hash for a relation with custom methods' do
- setup_yaml(project_tree: [:issues], methods: {issues: [:name]})
+ setup_yaml(project_tree: [:issues], methods: { issues: [:name] })
expect(described_class.new(shared: shared).project_tree).to match(include: [{ issues: { methods: [:name] } }])
end