Permalink
Browse files

Fixed generators

  • Loading branch information...
jferris committed Dec 3, 2009
1 parent 0a6882e commit 1ae3237a73af48bfa0a1d66ade15b94993b5ebbd
View
@@ -55,7 +55,8 @@ begin
gem.files = FileList['[A-Z]*',
'lib/**/*.rb',
'spec/**/*.rb',
- 'rails/**/*.rb']
+ 'rails/**/*.rb',
+ 'generators/**/*.*']
gem.require_path = 'lib'
gem.test_files = Dir[*['spec/**/*_spec.rb']]
@@ -1,4 +1,4 @@
-class <%= view_class_name %> < Rails::Effigy::View
+class <%= view_class_name %> < Effigy::Rails::View
private
def transform
# Apply transformations to the template file here:
@@ -1,4 +1,4 @@
-class <%= view_class_name %> < Rails::Effigy::View
+class <%= view_class_name %> < Effigy::Rails::View
private
def transform
# Apply transformations to the template file here:
@@ -46,7 +46,7 @@ def rails_command(command)
end
it "should create a view file" do
- view_path.should contain("class #{@view_class_name} < Rails::Effigy::View")
+ view_path.should contain("class #{@view_class_name} < Effigy::Rails::View")
view_path.should contain("private")
view_path.should contain("def transform")
view_path.should contain(relative_template_path)
@@ -93,7 +93,7 @@ def relative_template_path
end
it "should create a view file" do
- view_path.should contain("class #{@layout_class_name} < Rails::Effigy::View")
+ view_path.should contain("class #{@layout_class_name} < Effigy::Rails::View")
view_path.should contain("private")
view_path.should contain("def transform")
view_path.should contain("html('body', content_for(:layout))")

0 comments on commit 1ae3237

Please sign in to comment.