Sha256: 18e7503e924ab65eaa1b88d842673b372524b1c0ce7a159704796b2e9743802d
Contents?: true
Size: 644 Bytes
Versions: 5
Compression:
Stored size: 644 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class PluginTestHelperGeneratorTest < Test::Unit::TestCase def setup setup_app('empty') require 'rails_generator' require 'rails_generator/scripts/generate' Rails::Generator::Base.sources << Rails::Generator::PathSource.new(:plugin_test_helper, "#{Rails.root}/../../generators") Rails::Generator::Scripts::Generate.new.run(['plugin_test_helper', 'acts_as_foo']) end def test_should_create_test_helper assert File.exists?("#{Rails.root}/vendor/plugins/acts_as_foo/test/test_helper.rb") end def teardown teardown_app end end
Version data entries
5 entries across 5 versions & 1 rubygems