Sha256: 89e9b99e791be92d281dcddb97a05ed6090ef25df6f735f212a46de1843eaab9

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 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 = PluginAWeek::PluginTestHelper::PluginLocator.new(nil)
    assert_equal ['plugin_test_helper'], locator.plugins.map(&:name)
  end
  
  def teardown
    teardown_app
    $LOAD_PATH.replace(@original_load_path)
    FileUtils.rm_r(Dir.glob('test/app_root/*'))    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plugin_test_helper-0.1.5 test/unit/plugin_locator_test.rb
plugin_test_helper-0.1.3 test/unit/plugin_locator_test.rb
plugin_test_helper-0.1.4 test/unit/plugin_locator_test.rb