Hi I'm reading the rspec book and I'm having problems when I require the file 'spec/stubs/cucumber'. When I go to an IRB prompt and type require 'spec/stubs/cucumber' after requiring another libraries [1] I get the false in 'spec/expectations' and an error in 'spec/stubs/cucumber'. The error message is [2]. Any ideas? I'm using rspec 1.2.8.
Thanks in advance [1] require 'rubygems' require 'spec' require 'spec/expectations' require 'spec/stubs/cucumber' [2] NoMethodError: undefined method `Before' for main:Object from /home/rodrigo/.gem/ruby/1.8/gems/rspec-1.2.8/lib/spec/stubs/cucumber.rb:3 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from (irb):9 from :0 -- "A critical section of code is like a bathroom. Only one person is allowed inside at once. Iker Gondra, Operating Systems St. Francis Xavier University, Antigonish, NS" =================== Rodrigo L. M. Flores Computer Science Student - IME - USP Homepage (en): http://www.rodrigoflores.org Blog (pt-BR): http://blog.rodrigoflores.org Linux User # : 351304 Jabber: i...@rodrigoflores.org
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users