minitest
Minitest for Rails
Comprehensive guide to testing Rails applications with Minitest, the default Rails testing framework.
Test Case Classes
Rails provides specialized test case base classes:
| Base Class | Purpose | Location |
|---|---|---|
ActiveSupport::TestCase |
Model and unit tests | test/models/ |
ActionDispatch::IntegrationTest |
Multi-controller workflow tests | test/integration/ |
ActionDispatch::SystemTestCase |
Browser-based end-to-end tests | test/system/ |
ActionController::TestCase |
Functional controller tests | test/controllers/ |
ActionView::TestCase |
View and helper tests | test/helpers/ |
ActionMailer::TestCase |
Mailer tests | test/mailers/ |
ActiveJob::TestCase |
Background job tests | test/jobs/ |
Configuration
More from bastos/ruby-plugin-marketplace
action-cable
This skill should be used when the user asks about "WebSockets", "Action Cable", "real-time", "channels", "broadcasting", "streams", "subscriptions", "live updates", "push notifications", "chat features", or needs guidance on implementing real-time features in Rails applications.
2design-patterns
This skill should be used when the user asks about "design patterns", "SOLID", "factory pattern", "singleton", "observer", "strategy", "decorator", "adapter", "facade", "command pattern", "builder pattern", "dependency injection", "composition", "Ruby patterns", or needs guidance on implementing design patterns in Ruby.
2action-view
This skill should be used when the user asks about "views", "ERB templates", "partials", "layouts", "render", "form_with", "form helpers", "view helpers", "link_to", "content_for", "yield", "collection rendering", "locals", "tag helpers", "asset helpers", "image_tag", "stylesheet_link_tag", or needs guidance on building Rails views and templates.
1bundler
This skill should be used when the user asks about "Bundler", "Gemfile", "Gemfile.lock", "bundle install", "bundle update", "bundle exec", "dependency management", "gem versions", "gem groups", "bundle add", "gem sources", or needs guidance on managing Ruby dependencies.
1rails-caching
Rails caching strategies including fragment caching, low-level caching with Rails.cache, cache keys, and conditional GET. Use when the user asks about caching performance or invalidation in Rails.
1rspec matchers
This skill should be used when the user asks about "RSpec matchers", "expect syntax", "custom matchers", "compound matchers", "should vs expect", mentions "eq", "be", "include", "match", "have_attributes", or needs guidance on RSpec assertions and expectations.
1