Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed generators

  • Loading branch information...
commit 1ae3237a73af48bfa0a1d66ade15b94993b5ebbd 1 parent 0a6882e
@jferris authored
View
3  Rakefile
@@ -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']]
View
0  ...tors/effigy_view/effigy_view_generator.rb → ...tors/effigy_view/effigy_view_generator.rb
File renamed without changes
View
0  ...effigy_view/templates/layout_template.erb → ...effigy_view/templates/layout_template.erb
File renamed without changes
View
2  ...ors/effigy_view/templates/layout_view.erb → ...ors/effigy_view/templates/layout_view.erb
@@ -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:
View
0  ...rators/effigy_view/templates/template.erb → ...rators/effigy_view/templates/template.erb
File renamed without changes
View
2  ...generators/effigy_view/templates/view.erb → generators/effigy_view/templates/view.erb
@@ -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:
View
4 spec/rails/generators/effigy_view_spec.rb
@@ -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))")
Please sign in to comment.
Something went wrong with that request. Please try again.