rspec-model-testing

Community

Test ActiveRecord models thoroughly.

Authornekorush14
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a blueprint for writing thorough RSpec model specs, covering validations, associations, scopes, callbacks, and class/instance methods.

Core Features & Use Cases

  • Shoulda Matchers & Custom Tests: Validate common patterns plus bespoke validations.
  • Associations & Validations: Ensure data integrity and correct relationships.
  • Scopes & Callbacks: Verify query behavior and lifecycle hooks.

Quick Start

Write a user_spec.rb that checks presence validations, a has_many association, a scope named recent, and a custom instance method like full_name.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rspec-model-testing
Download link: https://github.com/nekorush14/dotfiles/archive/main.zip#rspec-model-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository