Skip to content

Commit c632d5c

Browse files
committed
fix: Tests
1 parent 1b92daf commit c632d5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hyperproof/spec/unit/cfa_security_controls/hyperproof_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
end
1111

1212
let(:entity) do
13-
instance_double(CfaSecurityControls::Hyperproof::Entities::Proof, create: true)
13+
instance_double(CfaSecurityControls::Hyperproof::Entities::Proof, create: true).tap do |entity|
14+
# Allow the entity to return an ID, but only once create has been called.
15+
allow(entity).to receive(:create) { allow(entity).to receive(:id).and_return(123) }
16+
end
1417
end
1518

1619
let(:label) do

0 commit comments

Comments
 (0)