mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
16 lines
399 B
Crystal
16 lines
399 B
Crystal
require "./spec_helper"
|
|
|
|
def new_pending_result(example : Spectator::Example? = nil)
|
|
Spectator::PendingResult.new(example || FailingExample.create)
|
|
end
|
|
|
|
describe Spectator::PendingResult do
|
|
describe "#example" do
|
|
it "is the expected value" do
|
|
example = PassingExample.create
|
|
result = new_pending_result(example: example)
|
|
result.example.should eq(example)
|
|
end
|
|
end
|
|
end
|