From 21db04818e0120a35912cbf57663dfecc9bec4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 3 Jul 2009 14:55:37 +0200 Subject: More tests for rails generators and lookup. --- .../lib/generators/active_record/fixjour/fixjour_generator.rb | 8 ++++++++ railties/test/fixtures/lib/generators/fixjour_generator.rb | 2 ++ .../lib/generators/missing_class/missing_class_generator.rb | 0 .../fixtures/lib/generators/missing_class/templates/.gitignore | 0 .../lib/generators/missing_generator/templates/.gitignore | 0 .../test/fixtures/lib/generators/missing_templates/.gitignore | 0 .../test/fixtures/lib/generators/rails/javascripts_generator.rb | 4 ++++ .../test/fixtures/lib/generators/working/working_generator.rb | 2 -- 8 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 railties/test/fixtures/lib/generators/active_record/fixjour/fixjour_generator.rb create mode 100644 railties/test/fixtures/lib/generators/fixjour_generator.rb delete mode 100644 railties/test/fixtures/lib/generators/missing_class/missing_class_generator.rb delete mode 100644 railties/test/fixtures/lib/generators/missing_class/templates/.gitignore delete mode 100644 railties/test/fixtures/lib/generators/missing_generator/templates/.gitignore delete mode 100644 railties/test/fixtures/lib/generators/missing_templates/.gitignore create mode 100644 railties/test/fixtures/lib/generators/rails/javascripts_generator.rb delete mode 100644 railties/test/fixtures/lib/generators/working/working_generator.rb (limited to 'railties/test/fixtures') diff --git a/railties/test/fixtures/lib/generators/active_record/fixjour/fixjour_generator.rb b/railties/test/fixtures/lib/generators/active_record/fixjour/fixjour_generator.rb new file mode 100644 index 0000000000..7a4edb8bcb --- /dev/null +++ b/railties/test/fixtures/lib/generators/active_record/fixjour/fixjour_generator.rb @@ -0,0 +1,8 @@ +require 'generators/active_record' + +module ActiveRecord + module Generators + class FixjourGenerator < Base + end + end +end diff --git a/railties/test/fixtures/lib/generators/fixjour_generator.rb b/railties/test/fixtures/lib/generators/fixjour_generator.rb new file mode 100644 index 0000000000..ef3e9edbed --- /dev/null +++ b/railties/test/fixtures/lib/generators/fixjour_generator.rb @@ -0,0 +1,2 @@ +class FixjourGenerator < Rails::Generators::NamedBase +end diff --git a/railties/test/fixtures/lib/generators/missing_class/missing_class_generator.rb b/railties/test/fixtures/lib/generators/missing_class/missing_class_generator.rb deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/railties/test/fixtures/lib/generators/missing_class/templates/.gitignore b/railties/test/fixtures/lib/generators/missing_class/templates/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/railties/test/fixtures/lib/generators/missing_generator/templates/.gitignore b/railties/test/fixtures/lib/generators/missing_generator/templates/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/railties/test/fixtures/lib/generators/missing_templates/.gitignore b/railties/test/fixtures/lib/generators/missing_templates/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/railties/test/fixtures/lib/generators/rails/javascripts_generator.rb b/railties/test/fixtures/lib/generators/rails/javascripts_generator.rb new file mode 100644 index 0000000000..cad5e96784 --- /dev/null +++ b/railties/test/fixtures/lib/generators/rails/javascripts_generator.rb @@ -0,0 +1,4 @@ +module Rails::Generators + class JavascriptsGenerator < Rails::Generators::NamedBase + end +end diff --git a/railties/test/fixtures/lib/generators/working/working_generator.rb b/railties/test/fixtures/lib/generators/working/working_generator.rb deleted file mode 100644 index 465b34319a..0000000000 --- a/railties/test/fixtures/lib/generators/working/working_generator.rb +++ /dev/null @@ -1,2 +0,0 @@ -class WorkingGenerator < Rails::Generator::NamedBase -end -- cgit v1.2.3