Undefined method "full_description" when trying to run "rake spec"


#1

Hello guys,

I’m getting this weird error when trying to run the specs using “rake
spec”:

/home/mauricio/NetBeansProjects/talkies/vendor/rails/actionpack/lib/action_controller/test_process.rb:471:in
method_missing': undefined methodfull_description’ for
#Spec::Rails::Example::ControllerExampleGroup::Subclass_73::Subclass_9:0x7f5fdca4a810
(NoMethodError)
from
/usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/matchers.rb:155:in
method_missing' from /home/mauricio/NetBeansProjects/talkies/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb:25:inexample_pending’
from
/home/mauricio/NetBeansProjects/talkies/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb:18:in
example_pending' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/reporter.rb:125:inexample_pending’
from
/usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/reporter.rb:120:in
each' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/reporter.rb:120:inexample_pending’
from
/usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/reporter.rb:29:in
example_finished' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:26:inexecute’
… 6 levels…
from
/usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:21:in
run' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:115:inrun_examples’
from
/usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in
`run’
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4
rake aborted!

Any ideas about what this might be?

Rspec gems are 1.1.11 and we also have the same gems installed in the
app as plugins. My machine is a "Linux linux-fof0
2.6.25.18-0.2-default #1 SMP 2008-10-21 16:30:26 +0200 x86_64 x86_64
x86_64 GNU/Linux
"

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)


#2

On Mon, Dec 1, 2008 at 8:39 AM, Maurício Linhares
removed_email_address@domain.invalid wrote:

   from /home/mauricio/NetBeansProjects/talkies/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb:25:in

`example_finished’
rake aborted!

Any ideas about what this might be?

Yeah - we removed that method from rspec a while back. Netbeans was
using it, but we weren’t coordinating w/ the netbeans team and had no
way of knowing.

I am in contact w/ the netbeans team and we are talking about
formalizing an API for them and other IDE vendors to use, which will
help to avoid this sort of problem in the future.

In the mean time, you can do this in your app (in spec_helper.rb I
guess):

module Spec
module Example
module ExampleMethods
alias :full_description, :__full_description
end
end
end

HTH,
David