Sha256: fcb273470c92fd9823cd9f1ed5801707d19ff15ae05fb53cd7fc628ccf236baf
Contents?: true
Size: 380 Bytes
Versions: 6
Compression:
Stored size: 380 Bytes
Contents
require "test_helper" class Order < ActiveRecord::Base add_to_bag :category end class AccessorTest < ActiveSupport::TestCase def setup @order = Order.new end test "should reject overwriting of column category" do value = "abc" assert @order.respond_to?(:category) @order.category = value assert_equal false, @order.bag.has_key?(:category) end end
Version data entries
6 entries across 6 versions & 1 rubygems