Registry / testing / rspec-rails

rspec-rails

JSON →
library8.0.4rbrubygemsunverified

rspec-rails integrates the Rails testing helpers into RSpec.

gem install rspec-rails
INSTALL
IMPORT
SIG · RSPEC-RAILS
R
rspec-rails
testingrubyv8.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RSpec
require 'rspec/rails'

Write a model spec with RSpec Rails

require 'rspec/rails' RSpec.describe User, type: :model do it 'is valid with valid attributes' do expect(User.new).to be_valid end end
Debug
Known issues
gotcharspec-rails requires Rails to be loaded; it is typically used within a Rails application.
fix
Ensure you have Rails in your Gemfile and run within a Rails project.
affects: >= 0
Upgrade
Version history
8.0.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
rspec-rails — gem install rspec-rails · libregistry