Created
August 16, 2018 16:24
-
-
Save DavidS/b178c2443943c35a53262eeaac94237a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'something' do | |
let(:route) { instance_double('Net::IP::Route', 'route') } | |
before(:each) do | |
allow(Net::IP::Route).to receive(:new).with({ test: 'data' }).and_return(route) | |
end | |
it 'doesn't suck' do | |
expect(Net::IP).to receive(:routes).with(route) | |
provider.create(context, name, {input: 'foo'}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To wrap up this thread, after some online debugging we found a missing stub, causing this.