Forum: RSpec rspec, Rails 2.3.1, undefined method `rspec_options='

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
José Gomes Jr. (Guest)
on 2009-03-12 18:43
(Received via mailing list)
Hi David, all:

I recently upgraded to Rails 2.3.1RC2 (Ubuntu 8.10, ruby 1.8.7
(2008-08-11 patchlevel 72) [i486-linux]) and have been dilligently
following the instructions for upgrading rspec and rspec-rails
according to:
and when I run 'rake gem' fails with error:

rake aborted!
undefined method `rspec_options=' for #<Hoe:0xb782caf0>

rspec / Rakefile look like
# -*- ruby -*-

$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
require 'hoe'
require 'spec/version'
require 'spec/rake/spectask'
require 'cucumber/rake/task'

class Hoe
  def extra_deps
    @extra_deps.reject! { |x| Array(x).first == 'hoe' }
end'rspec', Spec::VERSION::STRING) do |p|
  p.summary = Spec::VERSION::SUMMARY
  p.url = ''
  p.description = "Behaviour Driven Development for Ruby."
  p.rubyforge_name = 'rspec'
  p.developer('RSpec Development Team', 'removed_email_address@domain.invalid')
  p.extra_dev_deps = [["cucumber",">= 0.1.13"]]
  p.remote_rdoc_dir = "rspec/#{Spec::VERSION::STRING}"
  p.rspec_options = ['--options', 'spec/spec.opts']

Thanks in advance for your assistance,
José Gomes Júnior
David C. (Guest)
on 2009-03-12 18:46
(Received via mailing list)
On Sun, Mar 8, 2009 at 6:19 PM, José Gomes Jr. 
> /rspec/Rakefile:24
>  p.description = "Behaviour Driven Development for Ruby."
>  p.rubyforge_name = 'rspec'
>  p.developer('RSpec Development Team', 'removed_email_address@domain.invalid')
>  p.extra_dev_deps = [["cucumber",">= 0.1.13"]]
>  p.remote_rdoc_dir = "rspec/#{Spec::VERSION::STRING}"
>  p.rspec_options = ['--options', 'spec/spec.opts']

[sudo] gem update hoe

rspec_options is a relatively new hoe addition.

José Gomes Jr. (Guest)
on 2009-03-15 02:59
(Received via mailing list)
Thank you for providing the requested information.
This topic is locked and can not be replied to.