Re: Problems after upgrade

39 views
Skip to first unread message

dchel...@gmail.com

unread,
Feb 3, 2013, 12:56:17 PM2/3/13
to rs...@googlegroups.com
Don't know how far you upgraded, but this was fixed almost a year ago: https://github.com/rspec/rspec-rails/issues/518

On Tuesday, January 29, 2013 12:52:53 AM UTC-6, simo wrote:

I have upgraded my rspec lately, then when I try to test I have this error:

DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in RSpec::Rails::SetupAndTeardownAdapter instead. (called from at /home/dcaclab/RubymineProjects/coursebuilder/spec/models/country_spec.rb:5)

My country_spec.rb is:

describe Country do
pending "add some examples to (or delete) #{__FILE__}"
end

Shall I write it in another way?
I have this problem with all my models

Also, I have this error in a controller:
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in RSpec::Rails::ViewRendering instead. (called from at /home/dcaclab/RubymineProjects/coursebuilder/spec/controllers/quiz_spec.rb:1)

line 1 just says:
describe QuizzesController do

Is this an issue? how to solve it?

Thanks

giuseb

unread,
Feb 4, 2013, 5:03:44 AM2/4/13
to rs...@googlegroups.com
Not sure if my problem is related to simo's, but I also got warnings and errors in what I was assuming to be an up-to-date rspec-cucumber setup.

I have described the issue over at SO.

Cheers,
Giuseppe

Perry Smith

unread,
Feb 5, 2013, 11:41:44 PM2/5/13
to rs...@googlegroups.com
Very odd.  I have the opposite data point.

Roughly the same Gemfile but bundler decided to bless me with rspec 2.12.0 (which does not comply with cucumber's requirement of ~2.10.0).  Other rspec-* are 2.12.0, 2.12.1, and 2.12.2 -- seemingly random.

My confusion starts with cucumber's requirements.  Is that really what it needs?  Its been working fine for me.  (I have cucumber 1.2.1 installed).



--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rspec/-/Sy0QUIeyNOkJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages