Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change mocking syntax

  • Loading branch information...
commit 3438b26ba17c4a67a306888fa4c101773dc7f7c7 1 parent 2917954
@vmoravec authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/slp_service_test.rb
View
2  test/slp_service_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.