[rspec-users] Example for attr_accessible?

David Chelimsky dchelimsky at gmail.com
Tue Oct 16 14:43:43 EDT 2007

On 10/16/07, Pat Maddox <pergesu at gmail.com> wrote:
> describe Chicken do
>   it "should make only :name and :age attr_accessible" do
>     Chicken.should_receive(:attr_accessible).with(:name, :age)
>     load "#{RAILS_ROOT}/app/models/chicken.rb"
>   end
> end
> I first saw this technique described by David Chelimsky at
> http://rubyforge.org/pipermail/rspec-users/2007-September/002965.html

Which I first saw described by Jay Fields at

More information about the rspec-users mailing list