Reply to comment

Patch to get rid of rspec warnings

I started playing with rspec and am getting some annoying warnings. I created a simple patch to get rid of the warnings.

Get the patch Here.



It gets rid of the following three warnings:


/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/options.rb:93: warning: instance variable @files_loaded not initialized

/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner.rb:45: warning: instance variable @already_registered_at_exit_hook not initialized

/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/example/example_group_methods.rb:243: warning: instance variable @all_before_each_parts not initialized

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <as>, <bash>, <c>, <cpp>, <csharp>, <drupal5>, <drupal6>, <haskell>, <java>, <javascript>, <lisp>, <mysql>, <objc>, <perl>, <php>, <python>, <rails>, <ruby>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.