Forum: RSpec Undefined method "full_description" when trying to run "rake spec"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2008-12-01 15:41
(Received via mailing list)
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 method `full_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:in
`example_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:in
`example_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:in
`example_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:in
`execute'
   ... 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:in
`run_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)
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2008-12-01 16:13
(Received via mailing list)
On Mon, Dec 1, 2008 at 8:39 AM, Maurício Linhares
<mauricio.linhares@gmail.com> 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
This topic is locked and can not be replied to.