Skip to content

Commit 6e6b012

Browse files
committed
(maint) Fix test double
Rather than have both service doubles named the same thing, we need to be able to distinguish them. This way, if something gets messed up and the tests fail, both the name and the object id will be different. They won't look like the same object at first glance.
1 parent e0acc38 commit 6e6b012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/http/session_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
double('good', url: uri, connect: nil)
1111
}
1212
let(:bad_service) {
13-
service = double('good', url: uri)
13+
service = double('bad', url: uri)
1414
allow(service).to receive(:connect).and_raise(Puppet::HTTP::ConnectionError, 'whoops')
1515
service
1616
}

0 commit comments

Comments
 (0)