well, this is the test code:
describe 'EDIT action' do
before :each do
@l = Listing.generate
@l.save
end
describe 'UPDATE action' do
before :each do
@l = Listing.generate
@l.save
end
it 'updates basic information' do
phone1 = '2222222'
@response = request(
url(:listing, @l),
:method => 'POST',
:params => {:listing => {:phone1 => phone1}}
)
l = Listing.first(:slug.eql => @l.slug)
l.phone1.should == phone1
end
end
end
and the model is pretty standard. There is a validates_present on
phone1.
Its driving me nuts!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---