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 end config.mock_with :rspec do |c| c.syntax = :expect end end (see https://github.com/yast/yast-registration/blob/master/test/spec_helper.rb#L1...) 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@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org