1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
class PluginBuilder < Rails::PluginBuilder def test create_file "spec/spec_helper.rb" append_file "Rakefile", <<-EOF # spec tasks in rakefile task default: :spec EOF end def generate_test_dummy dummy_path("spec/dummy") super end def skip_test_unit? true end end