search for: trade_order

Displaying 1 result from an estimated 1 matches for "trade_order".

2011 Sep 14
1
rspec and should have_many through
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 => :source } this is for Rspec 2, rails 3.1, gem "rspec-rails" gem "remarkable_activerecord", "~> 4.0.0.alpha4" gem ''rspec-rails-ext'...