Sha256: 958607000a5f345f3ea931d22cf00e9c69e0ca492124346964e679b410d94ce7

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

module PluginAWeek #:nodoc:
  module PluginTestHelper
    # Assists in the initialization process by locating the plugin being tested
    # so that it is tested as if the plugin were loaded in a regular app
    class PluginLocator < Rails::Plugin::Locator
      def plugins
        [Rails::Plugin.new(File.expand_path('.'))]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plugin_test_helper-0.1.5 lib/plugin_test_helper/plugin_locator.rb
plugin_test_helper-0.1.6 lib/plugin_test_helper/plugin_locator.rb