Sha256: 8a08413b2e38ca03bbe660a816f6c95c412bbd3c108168774e82cb25ce7d44b1

Contents?: true

Size: 376 Bytes

Versions: 4

Compression:

Stored size: 376 Bytes

Contents

# Generates the test helper for a plugin
class PluginTestHelperGenerator < Rails::Generator::NamedBase
  def manifest #:nodoc:
    record do |m|
      plugin_test_root = "vendor/plugins/#{name}/test"
      m.file 'test_helper.rb', "#{plugin_test_root}/test_helper.rb"
    end
  end
  
  protected
    def banner
      "Usage: #{$0} plugin_test_helper your_plugin"
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plugin_test_helper-0.1.1 generators/plugin_test_helper/plugin_test_helper_generator.rb
plugin_test_helper-0.1.4 generators/plugin_test_helper/plugin_test_helper_generator.rb
plugin_test_helper-0.1.2 generators/plugin_test_helper/plugin_test_helper_generator.rb
plugin_test_helper-0.1.3 generators/plugin_test_helper/plugin_test_helper_generator.rb