On 10/16/07, Pat Maddox <[EMAIL PROTECTED]> 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
http://blog.jayfields.com/2006/12/rails-unit-testing-activerecord.html
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to