[Rspec-devel] RSpec on Rails fubarred on edge rails?

Luke Redpath luke at agileevolved.com
Thu Aug 10 16:59:34 EDT 2006


Is anybody else having problems running controller specs with edge  
rails? This is possibly an issue in 1.1.6 but I haven't been able to  
confirm that.

It relates to the deprecation of @params, @session which now throws  
deprecation warnings.

Here's some example output:

@session is deprecated! Call session.inspect instead of  
@session.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@flash is deprecated! Call flash.inspect instead of @flash.inspect.  
Args: [] (inspect_for_expectation_not_met_error at /usr/local/lib/ 
ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/should_base.rb:10)
@params is deprecated! Call params.inspect instead of  
@params.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@session is deprecated! Call session.inspect instead of  
@session.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@params is deprecated! Call params.inspect instead of  
@params.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@flash is deprecated! Call flash.inspect instead of @flash.inspect.  
Args: [] (inspect_for_expectation_not_met_error at /usr/local/lib/ 
ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/should_base.rb:10)
F at session is deprecated! Call session.inspect instead of  
@session.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@params is deprecated! Call params.inspect instead of  
@params.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@flash is deprecated! Call flash.inspect instead of @flash.inspect.  
Args: [] (inspect_for_expectation_not_met_error at /usr/local/lib/ 
ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/should_base.rb:10)
@session is deprecated! Call session.inspect instead of  
@session.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@flash is deprecated! Call flash.inspect instead of @flash.inspect.  
Args: [] (inspect_for_expectation_not_met_error at /usr/local/lib/ 
ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/should_base.rb:10)
@params is deprecated! Call params.inspect instead of  
@params.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@session is deprecated! Call session.inspect instead of  
@session.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@params is deprecated! Call params.inspect instead of  
@params.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@flash is deprecated! Call flash.inspect instead of @flash.inspect.  
Args: [] (inspect_for_expectation_not_met_error at /usr/local/lib/ 
ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/should_base.rb:10)
@session is deprecated! Call session.inspect instead of  
@session.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@params is deprecated! Call params.inspect instead of  
@params.inspect. Args: [] (inspect_for_expectation_not_met_error at / 
usr/local/lib/ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/ 
should_base.rb:10)
@flash is deprecated! Call flash.inspect instead of @flash.inspect.  
Args: [] (inspect_for_expectation_not_met_error at /usr/local/lib/ 
ruby/gems/1.8/gems/rspec-0.5.16/lib/spec/api/helper/should_base.rb:10)

Cheers
Luke

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-devel/attachments/20060810/1ecd5c24/attachment.html 


More information about the Rspec-devel mailing list