Sha256: 15160d0127304084ee6a1ad9d794ebce00a41487c5c8a5139b561f76a800e21b

Contents?: true

Size: 657 Bytes

Versions: 76

Compression:

Stored size: 657 Bytes

Contents

module Spud
  module Cms
    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

76 entries across 76 versions & 2 rubygems

Version Path
spud_cms-0.7.2 lib/spud_cms/test_files.rb
spud_cms-0.7.1 lib/spud_cms/test_files.rb
spud_cms-0.7.0 lib/spud_cms/test_files.rb
spud_cms-0.4.8 lib/spud_cms/test_files.rb
spud_cms-0.4.7 lib/spud_cms/test_files.rb
spud_cms-0.4.6 lib/spud_cms/test_files.rb
spud_cms-0.4.5 lib/spud_cms/test_files.rb
spud_cms-0.4.4 lib/spud_cms/test_files.rb
spud_cms-0.4.3 lib/spud_cms/test_files.rb
spud_cms-0.4.0 lib/spud_cms/test_files.rb
spud_cms-0.3.7 lib/spud_cms/test_files.rb
spud_cms-0.3.6 lib/spud_cms/test_files.rb
spud_cms-0.3.4 lib/spud_cms/test_files.rb
spud_cms-0.3.3 lib/spud_cms/test_files.rb
spud_cms-0.3.2 lib/spud_cms/test_files.rb
spud_cms-0.3.1 lib/spud_cms/test_files.rb