Sha256: 86f12fe22e127806c4b47f16716f7e190dfec67bf0c41b6e868c4a7dbea0dba1

Contents?: true

Size: 259 Bytes

Versions: 9

Compression:

Stored size: 259 Bytes

Contents

require 'spec_helper'

describe 'accessible' do
  it "mass assignment deny" do
    lambda {
      AccessibleModel.create(:first => 123)
    }.should_not raise_error

    lambda {
      AccessibleModel.create(:second => 345)
    }.should raise_error
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
automigration-1.1.4 spec/lib/accessible_spec.rb
automigration-1.1.3 spec/lib/accessible_spec.rb
automigration-1.1.2 spec/lib/accessible_spec.rb
automigration-1.1.1 spec/lib/accessible_spec.rb
automigration-1.1.0 spec/lib/accessible_spec.rb
automigration-1.0.3 spec/lib/accessible_spec.rb
automigration-1.0.2 spec/lib/accessible_spec.rb
automigration-1.0.1 spec/lib/accessible_spec.rb
automigration-1.0.0 spec/lib/accessible_spec.rb