Sha256: 37f0452151748b67b6521d16139a4c98fc30df8ae820845fc40aaa2fb91ed731

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 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)  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plugin_test_helper-0.1.6 test/unit/plugin_locator_test.rb