Sha256: 4942a67f32883bdca55989f33c652312b5fb03c0bf84c36102777ffa53550793

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

# Generates the test helper for a plugin
class PluginTestHelperGenerator < Rails::Generator::NamedBase
  def manifest
    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

2 entries across 2 versions & 1 rubygems

Version Path
plugin_test_helper-0.0.1 generators/plugin_test_helper/plugin_test_helper_generator.rb
plugin_test_helper-0.0.2 generators/plugin_test_helper/plugin_test_helper_generator.rb