Sha256: fcdd6e0cbd355ab5a82dea7fd29f42c29dcd5fa6cb3008ac1c6c3c408a20a7ef

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

# Generates the test helper for a plugin
class PluginTestHelperGenerator < Rails::Generator::NamedBase
  def manifest #:nodoc:
    record do |m|
      plugin_root = "vendor/plugins/#{name}"
      
      # Test directory
      m.directory File.join(plugin_root, 'test')
      
      # Test helper
      m.file 'test_helper.rb', File.join(plugin_root, 'test/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.2.1 generators/plugin_test_helper/plugin_test_helper_generator.rb
plugin_test_helper-0.1.5 generators/plugin_test_helper/plugin_test_helper_generator.rb
plugin_test_helper-0.1.6 generators/plugin_test_helper/plugin_test_helper_generator.rb
plugin_test_helper-0.2.0 generators/plugin_test_helper/plugin_test_helper_generator.rb