Browse files

Dev: Forgot to "revert" including ApplicationHelper into the singleto…

…n class - `extend` is just fine.
  • Loading branch information...
1 parent 2a68452 commit 654367d307569e79ea535974c47ba86ca6da4a1e @justinko justinko committed Jun 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/rails/example/helper_example_group.rb
View
2 lib/rspec/rails/example/helper_example_group.rb
@@ -18,7 +18,7 @@ def determine_default_helper_class(ignore)
# mixed in, along with any of the built-in rails helpers.
def helper
_view.tap do |v|
- v.singleton_class.send(:include, ApplicationHelper) if defined?(ApplicationHelper)
+ v.extend(ApplicationHelper) if defined?(ApplicationHelper)
v.assign(view_assigns)
end
end

0 comments on commit 654367d

Please sign in to comment.