Mailinglist Archive: yast-devel (58 mails)

< Previous Next >
Re: [yast-devel] rspec 3.0
Dne 23.5.2014 10:04, Josef Reidinger napsal(a):
I agree. I just see one of rspec test using obsolete monkey patching
with `instance.stub(...)`, so I will like to raise it to have easy
switch to new rspec.

RSpec allows to configure the used syntax, it's quite easy, just add this
snippet to
your spec_helper.rb:

# allow only the new "expect" RSpec syntax
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = :expect
config.mock_with :rspec do |c|
c.syntax = :expect


This configuration removes .stub method definition so if it is used somewhere
in the tests it will fail with "undefined method `stub'" error. You should
easily find the places to fix.


Best Regards

Ladislav Slez√°k
Yast Developer
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages