mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
These may be readded later. Right now they're failing because the GitHub issue 44 spec changes the behavior of Process.run. The changes made by that spec shouldn't leak, but to fix correctly requires substantial changes. These runtime tests provide little value right now and slow down testing.
17 lines
468 B
Crystal
17 lines
468 B
Crystal
require "json" # Needed to test masking Object#to_json in doubles.
|
|
require "yaml" # Needed to test masking Object#to_yaml in doubles.
|
|
require "../src/spectator"
|
|
require "../src/spectator/should"
|
|
require "./helpers/**"
|
|
|
|
macro it_fails(description = nil, &block)
|
|
it {{description}} do
|
|
expect do
|
|
{{block.body}}
|
|
end.to raise_error(Spectator::ExampleFailed)
|
|
end
|
|
end
|
|
|
|
macro specify_fails(description = nil, &block)
|
|
it_fails {{description}} {{block}}
|
|
end
|