shard-spectator/spec/spec_helper.cr

14 lines
277 B
Crystal
Raw Normal View History

2018-08-18 21:33:20 +00:00
require "../src/spectator"
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