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"
|
2020-08-16 16:59:15 +00:00
|
|
|
require "./helpers/**"
|
2020-01-18 05:41:38 +00:00
|
|
|
|
|
|
|
macro it_fails(description = nil, &block)
|
|
|
|
it {{description}} do
|
|
|
|
expect do
|
|
|
|
{{block.body}}
|
2021-07-10 09:32:55 +00:00
|
|
|
end.to raise_error(Spectator::ExampleFailed)
|
2020-01-18 05:41:38 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
macro specify_fails(description = nil, &block)
|
|
|
|
it_fails {{description}} {{block}}
|
|
|
|
end
|