mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
15 lines
369 B
Crystal
15 lines
369 B
Crystal
require "../spec_helper"
|
|
|
|
# https://gitlab.com/arctic-fox/spectator/-/wikis/Anonymous-Doubles
|
|
Spectator.describe "Anonymous Doubles Docs" do
|
|
it "does something" do
|
|
dbl = double(foo: 42)
|
|
expect(dbl.foo).to eq(42)
|
|
end
|
|
|
|
it "does something" do
|
|
dbl = double(foo: 42)
|
|
allow(dbl).to receive(:foo).and_return(123)
|
|
expect(dbl.foo).to eq(123)
|
|
end
|
|
end
|