Crystal Medium · Lesson 8

Testing with Spec

Write tests with the built-in Spec library: describe and it blocks, should eq, be_true, be_nil, contain, be_close and expect_raises, run by crystal spec.

Lessons · Crystal Medium · Lesson 8 of 10

Testing with Spec

Write tests with the built-in Spec library: describe and it blocks, should eq, be_true, be_nil, contain, be_close and expect_raises, run by crystal spec.

Illustration for Crystal
Write tests with the built-in Spec library: describe and it blocks, should eq, be_true, be_nil, contain, be_close and expect_raises, run by crystal spec.