diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-21 00:55:08 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:50 +0100 |
commit | ae1debd442113ed9476e776fe27cd95730896b59 (patch) | |
tree | 58a55919bde8a780ae7bc7ea6e12574d8d20e3cf /railties/test/fixtures/lib/app_builders | |
parent | b36fa51a3f56431d8e46c1fff6a6493d3c10607a (diff) | |
download | rails-ae1debd442113ed9476e776fe27cd95730896b59.tar.gz rails-ae1debd442113ed9476e776fe27cd95730896b59.tar.bz2 rails-ae1debd442113ed9476e776fe27cd95730896b59.zip |
Make tests for app and plugin generators more DRY
Diffstat (limited to 'railties/test/fixtures/lib/app_builders')
3 files changed, 16 insertions, 0 deletions
diff --git a/railties/test/fixtures/lib/app_builders/empty_builder.rb b/railties/test/fixtures/lib/app_builders/empty_builder.rb new file mode 100644 index 0000000000..babd9c2461 --- /dev/null +++ b/railties/test/fixtures/lib/app_builders/empty_builder.rb @@ -0,0 +1,2 @@ +class AppBuilder +end
\ No newline at end of file diff --git a/railties/test/fixtures/lib/app_builders/simple_builder.rb b/railties/test/fixtures/lib/app_builders/simple_builder.rb new file mode 100644 index 0000000000..993d3a2aa2 --- /dev/null +++ b/railties/test/fixtures/lib/app_builders/simple_builder.rb @@ -0,0 +1,7 @@ +class AppBuilder + def gitignore + create_file ".gitignore", <<-R.strip +foobar + R + end +end diff --git a/railties/test/fixtures/lib/app_builders/tweak_builder.rb b/railties/test/fixtures/lib/app_builders/tweak_builder.rb new file mode 100644 index 0000000000..cb50be01cb --- /dev/null +++ b/railties/test/fixtures/lib/app_builders/tweak_builder.rb @@ -0,0 +1,7 @@ +class AppBuilder < Rails::AppBuilder + def gitignore + create_file ".gitignore", <<-R.strip +foobar + R + end +end |