Skip to content

Commit

Permalink
Merge pull request rspec#551 from jackdempsey/remove_hook_for_helper
Browse files Browse the repository at this point in the history
built-in scaffold generator already runs the hook for helper
  • Loading branch information
dchelimsky committed Jun 1, 2012
2 parents 4a30681 + fd965a2 commit 887f9a4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/generators/rspec/scaffold/scaffold_generator.rb
Expand Up @@ -35,11 +35,6 @@ def generate_view_specs
copy_view :show
end

# Invoke the helper using the controller name (pluralized)
hook_for :helper, :as => :scaffold do |invoked|
invoke invoked, [ controller_name ]
end

def generate_routing_spec
return unless options[:routing_specs]

Expand Down

0 comments on commit 887f9a4

Please sign in to comment.