title: rails attr_accessible rspec check
body: <p>When I want to test if attribute is / is not <strong>accessible</strong> with RSpec I'm doing it like this </p>
  
  <pre><code>class Foo
    attr_accesible :something_else
  end
  
  describe Foo do
    it('author should not be accessible')    {lambda{described_class.new(:author=&gt;true)}.should raise_error ActiveModel::MassAssignmentSecurity::Error}
    it('something_else should be accessible'){lambda{described_class.new(:something_else=&gt;true)}.should_not raise_error ActiveModel::MassAssignmentSecurity::Error}
  end
  </code></pre>
  
  <p>is there better way doing that ? </p>
  
  <p>...thx</p>