diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-22 23:00:54 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-22 23:00:54 +0300 |
commit | 15a05be70d7652a98f870c5b5d02373dabf363e0 (patch) | |
tree | 970f32c6d3fb705c5626b503dee5e683049f5c8e /spec/helpers/tree_helper_spec.rb | |
parent | 88328392918deeb459c1d991559f9b40b5fc1026 (diff) |
Fix Style/Blocks cop violations
Diffstat (limited to 'spec/helpers/tree_helper_spec.rb')
-rw-r--r-- | spec/helpers/tree_helper_spec.rb | 7 |
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") } |