Socket
Book a DemoInstallSign in
Socket

mass_assignment_assertions

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mass_assignment_assertions

0.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Mass Assignment Assertions

Rails Unit Test Assertions for ensuring attributes are marked protected.

Usage

Add to Gemfile:

group :test do
  gem 'mass_assignment_assertions'
end

Then in your unit tests:

def test_attrs_protected
  assert_attr_protected Model, :user_id, :post_id
end

The assert_attr_protected takes either a model class or an instance of a model.

FAQs

Package last updated on 27 Apr 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.