Hi, After upgrading to rails 3.1 and rspec-rails 2.6.1 I get the following deprecation warning, however as far as I can tell I am not defining any examples before it is called. I am using the default spec_helper generated with rails g rspec:install so why this warning? Thanks ***************************************************************** DEPRECATION WARNING: you are using deprecated behaviour that will be removed from RSpec 3. You have set some configuration options after an example group has already been defined. In RSpec 3, this will not be allowed. All configuration should happen before the first example group is defined. The configuration is happening at: .../spec/spec_helper.rb:10 ***************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110901/2d471537/attachment.html>
On Sep 1, 2011, at 5:03 AM, Jim Morris wrote:> Hi, > > After upgrading to rails 3.1 and rspec-rails 2.6.1 I get the following deprecation warning, however as far as I can tell I am not defining any examples before it is called. > > I am using the default spec_helper generated with rails g rspec:install so why this warning? > > Thanks > > ***************************************************************** > DEPRECATION WARNING: you are using deprecated behaviour that will > be removed from RSpec 3. > > You have set some configuration options after an example group has > already been defined. In RSpec 3, this will not be allowed. All > configuration should happen before the first example group is > defined. The configuration is happening at: > > .../spec/spec_helper.rb:10 > ***************************************************************** >https://github.com/rspec/rspec-rails/issues/371
I didn''t think of looking in closed bugs :) I guess the fix has not made into the current release. I think this gives me enough clues as to what I need to do to fix it though, thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110901/6bd96445/attachment.html>