From c80f595868c90e902834c6fbdba60c9830b16376 Mon Sep 17 00:00:00 2001 From: Beniamin Sarkisyan Date: Wed, 20 Jul 2016 19:35:00 +0300 Subject: [PATCH] [FIXED] Removed unnecessary code #99 --- lib/generamba/code_generation/code_module.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/generamba/code_generation/code_module.rb b/lib/generamba/code_generation/code_module.rb index 2f19d76..c343fb1 100644 --- a/lib/generamba/code_generation/code_module.rb +++ b/lib/generamba/code_generation/code_module.rb @@ -62,22 +62,22 @@ def initialize(name, description, rambafile, options) if options[:module_file_path] @module_file_path = options[:module_file_path].gsub(SLASH_REGEX, '') - @module_file_path = Pathname.new(@module_file_path).join(@name) if @module_file_path + @module_file_path = Pathname.new(@module_file_path).join(@name) end if options[:module_group_path] @module_group_path = options[:module_group_path].gsub(SLASH_REGEX, '') - @module_group_path = Pathname.new(@module_group_path).join(@name) if @module_group_path + @module_group_path = Pathname.new(@module_group_path).join(@name) end if options[:test_file_path] @test_file_path = options[:test_file_path].gsub(SLASH_REGEX, '') - @test_file_path = Pathname.new(@test_file_path).join(@name) if @test_file_path + @test_file_path = Pathname.new(@test_file_path).join(@name) end if options[:test_group_path] @test_group_path = options[:test_group_path].gsub(SLASH_REGEX, '') - @test_group_path = Pathname.new(@test_group_path).join(@name) if @test_group_path + @test_group_path = Pathname.new(@test_group_path).join(@name) end # The priority is given to `module_path` and 'test_path' options