Permalink
Browse files

Added a simple acceptance test generator

  • Loading branch information...
1 parent bf9d3a9 commit dcaaece402d65ef90baf540c1d819360bb42c55f @gingerhendrix committed Apr 18, 2009
View
9 generators/acceptance_test/USAGE
@@ -0,0 +1,9 @@
+Description:
+ Generate a scrobbler2 acceptance test
+
+Usage:
+ ./script/generate acceptance_test resource func
+
+ * resource is a last.fm api resource (eg. user, track etc)
+ * func is a last.fm api method (eg. info, similar, top_tags etc)
+
View
2 ...eptance_test/acceptance_test_generator.rb → ...eptance_test/acceptance_test_generator.rb
@@ -1,6 +1,6 @@
class AcceptanceTestGenerator < RubiGen::Base
- default_options :author => nil
+# default_options :author => nil
attr_reader :resource
attr_reader :func
View
0 ...nce_test/templates/acceptance_test.rb.erb → ...nce_test/templates/acceptance_test.rb.erb
File renamed without changes.
View
5 scrobbler2_generators/acceptance_test/USAGE
@@ -1,5 +0,0 @@
-Description:
-
-
-Usage:
-
View
2 test/generators/test_acceptance_test_generator.rb
@@ -42,6 +42,6 @@ def sources
end
def generator_path
- "scrobbler2_generators"
+ "generators"
end
end

0 comments on commit dcaaece

Please sign in to comment.