Sha256: 807fb64d785c8fe2a4ff16e92b69b76cfbf3193caf9483f49642693089ed0458

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

class PluginLocatorTest < Test::Unit::TestCase
  def setup
    @original_load_path = $LOAD_PATH
    setup_app('empty')
  end
  
  def test_should_locate_plugin_being_tested
    locator = PluginTestHelper::PluginLocator.new(nil)
    assert_equal ['plugin_test_helper'], locator.plugins.map(&:name)
  end
  
  def teardown
    teardown_app
    $LOAD_PATH.replace(@original_load_path)  
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plugin_test_helper-0.3.1 test/unit/plugin_locator_test.rb
plugin_test_helper-0.2.0 test/unit/plugin_locator_test.rb
plugin_test_helper-0.2.1 test/unit/plugin_locator_test.rb
plugin_test_helper-0.3.0 test/unit/plugin_locator_test.rb