Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9bfa13bb06
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.419 kB
require 'cases/helper'
require 'models/project'
class DeprecatedMassAssignmentSecurityTest < ActiveModel::TestCase
def test_attr_accessible_raise_error
assert_raise RuntimeError, /protected_attributes/ do
Project.attr_accessible :username
end
end
def test_attr_protected_raise_error
assert_raise RuntimeError, /protected_attributes/ do
Project.attr_protected :username
end
end
end
Jump to Line
Something went wrong with that request. Please try again.