spec. It’s pretty similar to
crystalcreated this project structure for us.
specfolder? Yes, as you guess Crystal created this folder and the first spec for us. In Crystal a file is tested with corresponding
_specfile. Since we named our project as
sampleit created a file named
sample.crand the corresponding spec with
unit testmeans the same so we can use them interchangeably.
specs with the following purposes.
describelets you group related specs.
itis used for defining a spec with the given title in between “”.
shouldis used for making assumptions about the spec.
ithas one spec with the title of
workswhich makes the assumption that false
crystalcommand to the rescue.
Sample works. Let’s make it pass(green).