[rspec-users] ActsAsList specs
steve.tooke at gmail.com
Wed Aug 15 07:52:20 EDT 2007
How are people specifying models which act_as_list?
I'm thinking that it would be possible to check that acts_as_list
instance methods have been added to a class using something like this:
describe Page, "acts_as_list" do
it "should act as a list" do
it "should use page_index as position_column" do
Page.new.position_column.should == "page_index"
it "should have scope of book_id" do
Page.new.scope_condition.should == "book_id IS NULL"
it at least lets you drive adding acts_as_list? Any thoughts on how I
can improve this? How anyone else has done this?
More information about the rspec-users