Browse files

Fix inclusion of default helper to ViewExampleGroup

I suspect it's been broken ever since
6f254ac60a95aab7eafc56f0f19267ca9cb6412a in rspec-core

- Closes #259.

Signed-off-by: Jonathan del Strother <>
  • Loading branch information...
1 parent 2fc21b4 commit 323ffd0916fb715f3d0cf1b005d3c325adb08916 @jdelStrother jdelStrother committed with dchelimsky Nov 10, 2010
@@ -33,7 +33,7 @@ module ViewExampleGroup
module ClassMethods
def _default_helper
- base = metadata[:behaviour][:description].split('/').first
+ base = metadata[:example_group][:description].split('/').first
(base.camelize + 'Helper').constantize if base
rescue NameError
@@ -15,7 +15,7 @@ module RSpec::Rails
describe 'automatic inclusion of helpers' do
module ::ThingsHelper; end
- pending 'includes the helper with the same name' do
+ it 'includes the helper with the same name' do
group = RSpec::Core::ExampleGroup.describe 'things/show.html.erb'
group.class_eval do

0 comments on commit 323ffd0

Please sign in to comment.