vanweerd
2009-Apr-15 14:10 UTC
[rspec-users] `add_example_group'': undefined method `deprecate'' for Spec:Module (NoMethodError)
I''m the getting the following error when running rspec on a rails project. /Users/vanweerd/work2/innerplate/vendor/plugins/rspec/lib/spec/runner/ formatter/base_formatter.rb:52:in `add_example_group'': undefined method `deprecate'' for Spec:Module (NoMethodError) from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ reporter.rb:14:in `add_example_group'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ reporter.rb:13:in `each'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ reporter.rb:13:in `add_example_group'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/example/ example_group_methods.rb:116:in `notify'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/example/ example_group_methods.rb:97:in `run'' The method is: # Deprecated - use example_group_started instead def add_example_group(example_group_proxy) Spec.deprecate("BaseFormatter#add_example_group", "BaseFormatter#example_group_started") example_group_started(example_group_proxy) end I''m wondering if the issue is the base_formatter.rb is referencing the gem instead of the reporter.rb installed under the rails project vendor/plugins/rspec directory? This is on a rails 2.3.2 project with the restful authentication plugin. Thanks, Nick
David Chelimsky
2009-Apr-16 02:26 UTC
[rspec-users] `add_example_group'': undefined method `deprecate'' for Spec:Module (NoMethodError)
On Wed, Apr 15, 2009 at 11:10 AM, vanweerd <vanweerd at gmail.com> wrote:> I''m the getting the following error when running rspec on a rails > project. > > /Users/vanweerd/work2/innerplate/vendor/plugins/rspec/lib/spec/runner/ > formatter/base_formatter.rb:52:in `add_example_group'': undefined > method `deprecate'' for Spec:Module (NoMethodError) > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ > reporter.rb:14:in `add_example_group'' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ > reporter.rb:13:in `each'' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ > reporter.rb:13:in `add_example_group'' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/example/ > example_group_methods.rb:116:in `notify'' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/example/ > example_group_methods.rb:97:in `run'' > > The method is: > ? ? ? ?# Deprecated - use example_group_started instead > ? ? ? ?def add_example_group(example_group_proxy) > ? ? ? ? ?Spec.deprecate("BaseFormatter#add_example_group", > "BaseFormatter#example_group_started") > ? ? ? ? ?example_group_started(example_group_proxy) > ? ? ? ?end > > I''m wondering if the issue is the base_formatter.rb is referencing the > gem instead of the reporter.rb installed under the rails project > vendor/plugins/rspec directory?That''s definitely the issue. May I recommend that you get rid of the plugin and install as a gem?> > This is on a rails 2.3.2 project with the restful authentication > plugin. > > Thanks, > Nick > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >