@StatelessCode
  @StatelessCode
Stateless Code | Codecast: Create a RubyGem 54: Write roll_ability_scores Spec and Method @StatelessCode | Uploaded September 2021 | Updated October 2024, 1 hour ago.
This is the 54th video in the NerdDice create a RubyGem series. In this video Mike writes the specs and method for roll_ability scores. At the end there are some difficult to resolve RuboCop violations so the code is committed but not pushed to the remote.

This video covers:
00:00:12 Introduction
00:00:53 Set up specs and write "it" statements
00:03:10 Write first describe block specs with no options and talk through them
00:07:29 Write second describe block specs with ability score options and talk through them
00:08:29 Write third describe block specs with options on ability scores and dice and talk through them
00:11:13 Write third describe block specs with dice options and talk through them
00:12:05 Write spec for error scenario
00:12:45 Troubleshoot syntax errors in the spec
00:17:45 Implement the roll_ability_scores method
00:27:47 Troubleshoot syntax error caused by invalid close parenthesis in regular expression
00:32:10 Fix four remaining failing specs
00:33:51 Examine RuboCop violations
00:35:13 Decide that none of the RuboCop violations will be quick fixes and to commit but not push the code


This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Codecast: Create a RubyGem 54: Write roll_ability_scores Spec and MethodCreate a RubyGem 93: Refactor RuboCop to Enable New Cops by Default for the GemCodecast: Create a RubyGem 63: Create 0.3.x Stable Branch and Prune Old BranchesCodecast: Create a RubyGem 88: Add Ruby 3.1 to GitHub Actions and Update BundleGet Devise Working with Turbo in Rails 7Codecast: Getting Started with Rails 7 26: Fix Rich Text Fixtures and ValidationsInstall Ubuntu 24.04 LTS DesktopMediocre Karaoke - Dust in the Wind by KansasCodecast: Create a RubyGem 86: Retro on Version 0.4.0 (Now with Mediocre Karaoke)Write and Debug Happy Path System Tests for Devise Reset PasswordCodecast: statelesscode.com WordPress 22: Start Styling CommentsCodecast: Getting Started with Rails 7 13: Create Comments for an Article

Codecast: Create a RubyGem 54: Write roll_ability_scores Spec and Method @StatelessCode

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER