Re: [rspec-users] rspec and should have_many through

2011-09-13 Thread Justin Ko
On Tue, Sep 13, 2011 at 8:53 PM, slavix wrote: > Hi, > Anyone can help me with rspec shoulda validations please. > I can't get the syntax right for these validations. Please correct me > >it { should have_one :tradable, :through => :trade_order} >it { should belong_to :source, :polymor

[rspec-users] rspec and should have_many through

2011-09-13 Thread slavix
Hi, Anyone can help me with rspec shoulda validations please. I can't get the syntax right for these validations. Please correct me it { should have_one :tradable, :through => :trade_order} it { should belong_to :source, :polymorphic => true } it { should have_many :transfers, :as =