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
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 =