aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/fixtures/lib/plugin_builders
diff options
context:
space:
mode:
authoreparreno <emili@eparreno.com>2010-11-15 22:16:17 +0100
committereparreno <emili@eparreno.com>2010-11-15 22:16:17 +0100
commitca4b4c0baa240baea0eaf372283dbd33ec671b6a (patch)
tree0ca0ee53b1d03d76f82c3ba481da53c1e5499084 /railties/test/fixtures/lib/plugin_builders
parent04775a41cbbddceeffa9cf8590566b9990fd4070 (diff)
parent91a6db90cf8b2c07af4cf64a9c587268106aadd5 (diff)
downloadrails-ca4b4c0baa240baea0eaf372283dbd33ec671b6a.tar.gz
rails-ca4b4c0baa240baea0eaf372283dbd33ec671b6a.tar.bz2
rails-ca4b4c0baa240baea0eaf372283dbd33ec671b6a.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/test/fixtures/lib/plugin_builders')
-rw-r--r--railties/test/fixtures/lib/plugin_builders/empty_builder.rb2
-rw-r--r--railties/test/fixtures/lib/plugin_builders/simple_builder.rb7
-rw-r--r--railties/test/fixtures/lib/plugin_builders/spec_builder.rb19
-rw-r--r--railties/test/fixtures/lib/plugin_builders/tweak_builder.rb7
4 files changed, 35 insertions, 0 deletions
diff --git a/railties/test/fixtures/lib/plugin_builders/empty_builder.rb b/railties/test/fixtures/lib/plugin_builders/empty_builder.rb
new file mode 100644
index 0000000000..5c5607621c
--- /dev/null
+++ b/railties/test/fixtures/lib/plugin_builders/empty_builder.rb
@@ -0,0 +1,2 @@
+class PluginBuilder
+end
diff --git a/railties/test/fixtures/lib/plugin_builders/simple_builder.rb b/railties/test/fixtures/lib/plugin_builders/simple_builder.rb
new file mode 100644
index 0000000000..08f6c5535d
--- /dev/null
+++ b/railties/test/fixtures/lib/plugin_builders/simple_builder.rb
@@ -0,0 +1,7 @@
+class PluginBuilder
+ def gitignore
+ create_file ".gitignore", <<-R.strip
+foobar
+ R
+ end
+end
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..aa18c7ddaa
--- /dev/null
+++ b/railties/test/fixtures/lib/plugin_builders/spec_builder.rb
@@ -0,0 +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 generate_test_dummy
+ dummy_path("spec/dummy")
+ super
+ end
+
+ def skip_test_unit?
+ true
+ end
+end
diff --git a/railties/test/fixtures/lib/plugin_builders/tweak_builder.rb b/railties/test/fixtures/lib/plugin_builders/tweak_builder.rb
new file mode 100644
index 0000000000..1e801409a4
--- /dev/null
+++ b/railties/test/fixtures/lib/plugin_builders/tweak_builder.rb
@@ -0,0 +1,7 @@
+class PluginBuilder < Rails::PluginBuilder
+ def gitignore
+ create_file ".gitignore", <<-R.strip
+foobar
+ R
+ end
+end