Allow creation of doubles without a definition

Utilizes anonymous doubles to implement this.
Fixes https://github.com/icy-arctic-fox/spectator/issues/30
This commit is contained in:
Michael Miller 2021-07-02 19:18:14 -06:00
parent d4e2954725
commit a0537484f4
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
3 changed files with 32 additions and 14 deletions

View file

@ -0,0 +1,9 @@
require "../spec_helper"
Spectator.describe "GitHub Issue #30" do
let(dbl) { double(:foo) }
it "supports block-less symbol doubles" do
expect(dbl).to_not be_nil
end
end