Class: Motion::Project::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-spec.rb

Instance Method Summary collapse

Instance Method Details

#spec_core_filesObject



70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/motion-spec.rb', line 70

def spec_core_files
  @spec_core_files ||= begin
    # Core library + core helpers.
    Dir.chdir(File.join(File.dirname(__FILE__), '..')) do
      # NOTE: This line is commented out to avoid loading Bacon.
      ( # ['spec.rb'] +
      Dir.glob(File.join('spec', 'helpers', '*.rb')) +
      Dir.glob(File.join('project', 'template', App.template.to_s, 'spec-helpers', '*.rb'))).
        map { |x| File.expand_path(x) }
    end
  end
end