Sha256: 9701410d49573ba33a4b0b915170baaf34b91b62d447bd7e2845797c22e4c2ce

Contents?: true

Size: 658 Bytes

Versions: 9

Compression:

Stored size: 658 Bytes

Contents

module Spud
  module Core
    module TestFiles
      class << self
        def load_all
          load_specs
          load_factories
          load_support
        end
        
        def load_specs
          Dir[File.join(File.expand_path('../../../', __FILE__), 'spec/**/*_spec.rb')].each {|f| require f}
        end
          
        def load_factories
          Dir[File.join(File.expand_path('../../../', __FILE__), 'factories/*')].each {|f| require f}
        end
        
        def load_support
          Dir[File.join(File.expand_path('../../../', __FILE__), 'spec/support/**/*.rb')].each {|f| require f}
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tb_core-1.4.3.1 lib/spud_core/test_files.rb
tb_core-1.4.5 lib/tb_core/test_files.rb
tb_core-1.4.4 lib/tb_core/test_files.rb
tb_core-1.4.3 lib/spud_core/test_files.rb
tb_core-1.4.2 lib/spud_core/test_files.rb
tb_core-1.4.1 lib/spud_core/test_files.rb
tb_core-1.4.0.1 lib/spud_core/test_files.rb
tb_core-1.4.beta2 lib/spud_core/test_files.rb
tb_core-1.4.beta1 lib/spud_core/test_files.rb