Sha256: 3eecb3d0e64e4bdb62f2df1df90896ed82c6f2be55973c05d7daad682b8fce56

Contents?: true

Size: 643 Bytes

Versions: 8

Compression:

Stored size: 643 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('../..', __dir__), 'spec/**/*_spec.rb')].each {|f| require f}
        end
          
        def load_factories
          Dir[File.join(File.expand_path('../..', __dir__), 'factories/*')].each {|f| require f}
        end
        
        def load_support
          Dir[File.join(File.expand_path('../..', __dir__), 'spec/support/**/*.rb')].each {|f| require f}
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tb_core-1.5.4 lib/tb_core/test_files.rb
tb_core-1.5.3 lib/tb_core/test_files.rb
tb_core-1.5.2 lib/tb_core/test_files.rb
tb_core-1.5.1 lib/tb_core/test_files.rb
tb_core-1.5.0 lib/tb_core/test_files.rb
tb_core-1.4.8 lib/tb_core/test_files.rb
tb_core-1.4.7 lib/tb_core/test_files.rb
tb_core-1.4.6 lib/tb_core/test_files.rb