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