Sha256: b0119386357dc82c6cf99c1b133a4b0be1c1f224d18ee4f1d4a12db2e261c895

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

require 'test_helper'

module Automigration
  module Fields
    class AccessbileTest < ActiveSupport::TestCase
      test "mass assignment deny" do
        obj = AccessibleModel.create(:first => 123, :second => 345)
        assert_equal 123, obj.first
        assert_equal 0, obj.second
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
automigration-0.2.2 test/fields/accessible_test.rb
automigration-0.2.1 test/fields/accessible_test.rb