Skip to content

Codecast: Create a RubyGem 37: Write Specs for Die class

This is the 37th video in the NerdDice create a RubyGem series. In this video, Mike writes the failing specs for the first iteration of the Die class.

This video covers:

  • 00:00:12 Introduction and check out new branch
  • 00:01:12 Review spec for existing Configuration class and copy into new file as a model for the Die spec
  • 00:01:48 Adapt spec to Die class and write “it” statements
  • 00:02:47 Implement the specs for default with no options provided
  • 00:07:34 Implement the specs with options provided
  • 00:12:37 Implement the specs for the roll method
  • 00:23:44 Disable the example length cop for the replaces value spec

Leave a Reply