[rspec-devel] [ rspec-Bugs-13020 ] ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods should not be included in helper specs?

noreply at rubyforge.org noreply at rubyforge.org
Sun Aug 12 22:39:47 EDT 2007


Bugs item #13020, was opened at 2007-08-12 21:39
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13020&group_id=797

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Mike Vincent (agile)
Assigned to: Nobody (None)
Summary: ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods should not be included in helper specs?

Initial Comment:
1.0.6+ includes additional modules into the helper specs. 

including ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods

causes conflicts in helpers as it redefines several methods, such as << 

def simple_example(name)
  markup = ''
  markup << content_tag(:h1, "hello #{name}")
  markup
end

simple_example('foo').should have_tag('h1', 'foo')


will throw a confusing method missing error from nil about the << method.








----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13020&group_id=797


More information about the rspec-devel mailing list