summaryrefslogtreecommitdiff
path: root/spec/helpers/tree_helper_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/helpers/tree_helper_spec.rb
parent88328392918deeb459c1d991559f9b40b5fc1026 (diff)
downloadgitlab-ce-15a05be70d7652a98f870c5b5d02373dabf363e0.tar.gz
Fix Style/Blocks cop violations
Diffstat (limited to 'spec/helpers/tree_helper_spec.rb')
-rw-r--r--spec/helpers/tree_helper_spec.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/helpers/tree_helper_spec.rb b/spec/helpers/tree_helper_spec.rb
index 2013b3e4c2a..942c4c82868 100644
--- a/spec/helpers/tree_helper_spec.rb
+++ b/spec/helpers/tree_helper_spec.rb
@@ -4,10 +4,9 @@ describe TreeHelper do
describe 'flatten_tree' do
let(:project) { create(:project) }
- before {
- @repository = project.repository
- @commit = project.commit("e56497bb")
- }
+ before do
+ @repository = project.repository @commit = project.commit("e56497bb")
+ end
context "on a directory containing more than one file/directory" do
let(:tree_item) { double(name: "files", path: "files") }