Sha256: b996deb268a97b9ad61d85d3a888ed70a7e8c17be7fce3f29c9350a162d57b2a

Contents?: true

Size: 984 Bytes

Versions: 10

Compression:

Stored size: 984 Bytes

Contents

require 'autotest'

class Autotest::Mms2r < Autotest

  def initialize # :nodoc:
    super
    @exceptions = /\.svn/
    @test_mappings = {
      %r%^conf/aliases.yml$% => proc { |_, m|
        ["test/test_mms2r_media.rb"]
      },
      %r%^conf/(.*)\.yml% => proc { |_, m|
        ["test/test_#{m[1].gsub(/\./,'_')}.rb"]
      },
      %r%^lib/mms2r.rb$% => proc { |_, m|
        ["test/test_mms2r_media.rb"]
      },
      %r%^lib/mms2r/media.rb$% => proc { |_, m|
        ["test/test_mms2r_media.rb"]
      },
      %r%^lib/mms2r/media/sprint.rb$% => proc { |_, m|
        ["test/test_pm_sprint_com.rb"]
      },
      %r%^test/test_.*\.rb$% => proc { |filename, _|
        filename
      }
    }
  end

  def path_to_classname(s)
    sep = File::SEPARATOR
    f = s.sub(/^test#{sep}/, '').sub(/\.rb$/, '').split(sep)
    f = f.map { |path| path.split(/_/).map { |seg| seg.capitalize }.join }
    f = f.map { |path| path =~ /^Test/ ? path : "Test#{path}"  }
    f.join
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mms2r-2.0.1 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.0.0 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.0.2 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.1.0 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.0.4 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.0.5 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.0.3 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.1.1 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.1.2 vendor/plugins/mms2r/lib/autotest/mms2r.rb
mms2r-2.1.3 vendor/plugins/mms2r/lib/autotest/mms2r.rb