Hi,
I have model name "Address".
class Address < ActiveRecord::Base
end
And I have written the stub for this model.
define Address do
belongs_to :addressable, :polymorphic => true
methods :id => 1,
:full_name => 'Rob Williams',
:street1 => 'New Street',
:street2 => 'New Street2',
:city => 'My City',
:state => 'My State',
:country => 'My Country',
:zip_code => '123456',
:phone => '999999999',
:email => '[EMAIL PROTECTED]'
end
But I am not able to use stub_address here. The rspec takes Address as a
plural so it searched for the Addre definition.
Is there any way to solve it?
Thanks in advance...
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---