lib/teaspoon/suite.rb in teaspoon-0.7.4 vs lib/teaspoon/suite.rb in teaspoon-0.7.5

- old
+ new

@@ -20,14 +20,10 @@ @options = options @name = (@options[:suite] || :default).to_s @config = suite_configuration end - def use_require - config.use_require - end - def stylesheets config.stylesheets end def helper @@ -40,10 +36,18 @@ def core_javascripts config.javascripts end + def js_config + config.js_config + end + + def boot_partial + config.boot_partial + end + def spec_javascripts [helper, specs].flatten end def spec_javascripts_for_require @@ -82,12 +86,11 @@ glob.include?(file) end def include_spec_for?(file) return file if glob.include?(file) - glob.each do |spec| - return spec if spec.include?(file) - end + paths = glob.select { |path| path.include?(file) } + return paths unless paths.empty? false end protected