diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-20 21:21:14 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:50 +0100 |
commit | b36fa51a3f56431d8e46c1fff6a6493d3c10607a (patch) | |
tree | a446299bd74918c0942b64a38b5f74404eccb94d /railties/test/fixtures/lib | |
parent | fd1562af8c662fee8a44d244eaed3350ce10e7da (diff) | |
download | rails-b36fa51a3f56431d8e46c1fff6a6493d3c10607a.tar.gz rails-b36fa51a3f56431d8e46c1fff6a6493d3c10607a.tar.bz2 rails-b36fa51a3f56431d8e46c1fff6a6493d3c10607a.zip |
Allow easy overriding of test framework in 'rake plugin new' generator, using PluginBuilder
Diffstat (limited to 'railties/test/fixtures/lib')
-rw-r--r-- | railties/test/fixtures/lib/plugin_builders/spec_builder.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/test/fixtures/lib/plugin_builders/spec_builder.rb b/railties/test/fixtures/lib/plugin_builders/spec_builder.rb new file mode 100644 index 0000000000..bdaa1fb8e1 --- /dev/null +++ b/railties/test/fixtures/lib/plugin_builders/spec_builder.rb @@ -0,0 +1,13 @@ +class PluginBuilder < Rails::PluginBuilder + def test + create_file "spec/spec_helper.rb" + end + + def test_path + "spec" + end + + def rakefile_test_tasks + "# spec tasks in rakefile" + end +end |