diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 15:13:10 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:53 +0100 |
commit | f9e33fc09a6731ad56ff8cfe24b49532ed65039c (patch) | |
tree | 74e60eb0b4f7d2c62cbb129ec142f7fea944613c /railties/test/fixtures | |
parent | fadad11f9056a0166ee490a5eb0a4d9a01120d38 (diff) | |
download | rails-f9e33fc09a6731ad56ff8cfe24b49532ed65039c.tar.gz rails-f9e33fc09a6731ad56ff8cfe24b49532ed65039c.tar.bz2 rails-f9e33fc09a6731ad56ff8cfe24b49532ed65039c.zip |
create_dummy_app method that allows to easily create dummy application from template
Diffstat (limited to 'railties/test/fixtures')
-rw-r--r-- | railties/test/fixtures/lib/create_test_dummy_template.rb | 1 | ||||
-rw-r--r-- | railties/test/fixtures/lib/plugin_builders/spec_builder.rb | 14 |
2 files changed, 11 insertions, 4 deletions
diff --git a/railties/test/fixtures/lib/create_test_dummy_template.rb b/railties/test/fixtures/lib/create_test_dummy_template.rb new file mode 100644 index 0000000000..e4378bbd1a --- /dev/null +++ b/railties/test/fixtures/lib/create_test_dummy_template.rb @@ -0,0 +1 @@ +create_dummy_app("spec/dummy") diff --git a/railties/test/fixtures/lib/plugin_builders/spec_builder.rb b/railties/test/fixtures/lib/plugin_builders/spec_builder.rb index bdaa1fb8e1..aa18c7ddaa 100644 --- a/railties/test/fixtures/lib/plugin_builders/spec_builder.rb +++ b/railties/test/fixtures/lib/plugin_builders/spec_builder.rb @@ -1,13 +1,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 test_path - "spec" + def generate_test_dummy + dummy_path("spec/dummy") + super end - def rakefile_test_tasks - "# spec tasks in rakefile" + def skip_test_unit? + true end end |