Sometimes if you need to run a lot of expectations, you want to know about all of the failures rather than just the first one.
Ruby's RSpec accomplishes this like so:
it "returns success response from stripe" do
aggregate_failures "stripe response" do
expect(refund.amount).to eq 100
expect(refund.status).to eq "succeeded"
expect(refund.id).to start_with "re_"
end
end
Ruby has the blessing of lots of block contexts, but we could maybe mimic that feature like so:
Sometimes if you need to run a lot of expectations, you want to know about all of the failures rather than just the first one.
Ruby's RSpec accomplishes this like so:
Ruby has the blessing of lots of block contexts, but we could maybe mimic that feature like so:
No doubt a nightmare to implement in the current runner code (bump on https://github.com/CFC-Servers/GLuaTest/issues/24)