mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
14 lines
326 B
Crystal
14 lines
326 B
Crystal
|
require "../spec_helper"
|
||
|
|
||
|
Spectator.describe Spectator::Wrapper do
|
||
|
it "stores a value" do
|
||
|
wrapper = described_class.new(42)
|
||
|
expect(wrapper.get(Int32)).to eq(42)
|
||
|
end
|
||
|
|
||
|
it "retrieves a value using the block trick" do
|
||
|
wrapper = described_class.new(Int32)
|
||
|
expect(wrapper.get { Int32 }).to eq(Int32)
|
||
|
end
|
||
|
end
|