From dedb842fda708a3c3593f277b7092ee19a5ece4c Mon Sep 17 00:00:00 2001 From: Carlhuda Date: Fri, 30 Apr 2010 16:25:40 -0700 Subject: It would be nice to actually commit test fixtures --- railties/test/fixtures/lib/empty_builder.rb | 2 ++ railties/test/fixtures/lib/simple_builder.rb | 7 +++++++ railties/test/fixtures/lib/tweak_builder.rb | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 railties/test/fixtures/lib/empty_builder.rb create mode 100644 railties/test/fixtures/lib/simple_builder.rb create mode 100644 railties/test/fixtures/lib/tweak_builder.rb (limited to 'railties/test/fixtures') diff --git a/railties/test/fixtures/lib/empty_builder.rb b/railties/test/fixtures/lib/empty_builder.rb new file mode 100644 index 0000000000..babd9c2461 --- /dev/null +++ b/railties/test/fixtures/lib/empty_builder.rb @@ -0,0 +1,2 @@ +class AppBuilder +end \ No newline at end of file diff --git a/railties/test/fixtures/lib/simple_builder.rb b/railties/test/fixtures/lib/simple_builder.rb new file mode 100644 index 0000000000..47dcdc0d96 --- /dev/null +++ b/railties/test/fixtures/lib/simple_builder.rb @@ -0,0 +1,7 @@ +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 new file mode 100644 index 0000000000..eed20ecc9b --- /dev/null +++ b/railties/test/fixtures/lib/tweak_builder.rb @@ -0,0 +1,7 @@ +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 -- cgit v1.2.3