class Rspec::Generators::ScaffoldGenerator

def should_receive!(chain)


#=> User.should_receive(:get).with(37)
should! orm_class.find(User, "37")

For Datamapper:

#=> User.should_receive(:find).with(37)
should! orm_class.find(User, "37")

Receives the ORM chain and convert to expects. For ActiveRecord:
def should_receive!(chain)
  stub_or_should_chain(:should_receive, chain)
end