On Mon, Dec 1, 2008 at 8:39 AM, Maurício Linhares
<[EMAIL PROTECTED]> wrote:
> 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?

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


>
> 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)
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to