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 | |
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')
-rw-r--r-- | railties/test/fixtures/lib/app_builders/empty_builder.rb (renamed from railties/test/fixtures/lib/empty_builder.rb) | 0 | ||||
-rw-r--r-- | railties/test/fixtures/lib/app_builders/simple_builder.rb | 7 | ||||
-rw-r--r-- | railties/test/fixtures/lib/app_builders/tweak_builder.rb | 7 | ||||
-rw-r--r-- | railties/test/fixtures/lib/simple_builder.rb | 7 | ||||
-rw-r--r-- | railties/test/fixtures/lib/tweak_builder.rb | 7 |
5 files changed, 14 insertions, 14 deletions
diff --git a/railties/test/fixtures/lib/empty_builder.rb b/railties/test/fixtures/lib/app_builders/empty_builder.rb index babd9c2461..babd9c2461 100644 --- a/railties/test/fixtures/lib/empty_builder.rb +++ b/railties/test/fixtures/lib/app_builders/empty_builder.rb 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 diff --git a/railties/test/fixtures/lib/simple_builder.rb b/railties/test/fixtures/lib/simple_builder.rb deleted file mode 100644 index 47dcdc0d96..0000000000 --- a/railties/test/fixtures/lib/simple_builder.rb +++ /dev/null @@ -1,7 +0,0 @@ -class AppBuilder - def configru - create_file "config.ru", <<-R.strip -run proc { |env| [200, { "Content-Type" => "text/html" }, ["Hello World"]] } - R - end -end
\ No newline at end of file diff --git a/railties/test/fixtures/lib/tweak_builder.rb b/railties/test/fixtures/lib/tweak_builder.rb deleted file mode 100644 index eed20ecc9b..0000000000 --- a/railties/test/fixtures/lib/tweak_builder.rb +++ /dev/null @@ -1,7 +0,0 @@ -class AppBuilder < Rails::AppBuilder - def configru - create_file "config.ru", <<-R.strip -run proc { |env| [200, { "Content-Type" => "text/html" }, ["Hello World"]] } - R - end -end
\ No newline at end of file |