lib/lucid/app.rb in lucid-0.0.3 vs lib/lucid/app.rb in lucid-0.0.4
- old
+ new
@@ -12,11 +12,10 @@
@options = Lucid::Options.parse(args)
parser = Lucid::Parser.new(@options)
@specs = parser.specs
- #puts "[App.initialize] After calling parser for specs, I have: #{@specs.inspect}"
@tags = parser.tags
@message = "No specs were found matching the pattern '#{@options[:pattern]}'." and return unless @specs
@command = generate_command
@@ -79,12 +78,10 @@
return {:path => path, :name => name, :full_name => file}
end
def construct_spec_file(path, file, file_name)
- #puts "[App.construct_spec_file] Path = #{path} || File = #{file} || File name = #{file_name}"
-
construct = ""
# If the file that is passed in matches the name of the specs path
# then the assumption is that the user specified the main specs path
# to be executed, such as with "lucid specs". If the information
@@ -96,11 +93,9 @@
construct = "#{file_name}".gsub('//', '/')
else
#construct = "#{@options[:spec_path]}/#{path}/#{file}.feature".gsub('//', '/')
construct = "#{file_name}".gsub('//', '/')
end
-
- #puts "[App.construct_spec_file] Construct = #{construct}"
construct
end
end