shard-spectator/spec/spec_helper.cr

18 lines
468 B
Crystal
Raw Normal View History

2022-03-04 05:10:09 +00:00
require "json" # Needed to test masking Object#to_json in doubles.
require "yaml" # Needed to test masking Object#to_yaml in doubles.
2018-08-18 21:33:20 +00:00
require "../src/spectator"
2021-01-31 00:31:50 +00:00
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