Permalink
Browse files

Change mocking syntax

  • Loading branch information...
1 parent 2917954 commit 3438b26ba17c4a67a306888fa4c101773dc7f7c7 @vmoravec committed Mar 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/slp_service_test.rb
View
@@ -86,7 +86,7 @@
}
]
)
- ::Resolv.stub(:getname).and_raise(Resolv::ResolvError)
+ allow(::Resolv).to receive(:getname).and_raise(Resolv::ResolvError)
service = Yast::SlpService.find('install.suse')
expect(service.ip).to eq(ip_address)
expect(service.host).to be_nil

0 comments on commit 3438b26

Please sign in to comment.