Folks,
I was wondering if someone would be able to help me out with a quandry.
I'm trying to write an rspec plugin module for merb that will run all
specs within an ActiveRecord (initially) database transaction - to
give functionality similar to rails transactional fixtures.
Here is the module:
Courtenay <[EMAIL PROTECTED]> wrote:
> On 8/15/07, Steve Tooke <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > How are people specifying models which act_as_list?
> >
> > I'm thinking that it would be possible to check that acts_as_list
> > instanc
Hi,
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
Page.ancestors.should be_include(Ac
I've started to put together a custom expectation matcher for
specifying AR associations. Its not quite complete and I really need
to put some specs together for it, but I'd appreciate any comments.
It lets you spec your associations like this:
describe Record do
include ActiveRecordAssociation