-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
endRuby has the blessing of lots of block contexts, but we could maybe mimic that feature like so:
aggregateFailures( "stripe response", function()
expect( refund.amount ).to.equal( 100 )
expect( refund.status ).to.equal( "succeeded" )
expect( string.StartsWith( refund.id, "re_" ) ).to.beTrue()
end )No doubt a nightmare to implement in the current runner code (bump on #24)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request