search for: quoteparamet

Displaying 2 results from an estimated 2 matches for "quoteparamet".

2007 Mar 26
2
Failure creating model in spec setup not reported?
...ame => "Flinstone", :email => "fred at flinstone.com") @asset = Asset.new(:value => BigDecimal("250")) end specify "should have many quote parameters" do @asset.applicant = @applicant quote_parameters_1 = QuoteParameters.new(:term => 36, :applicant => @applicant, :product => @product) quote_parameters_2 = QuoteParameters.new(:term => 48, :applicant => @applicant, :product => @product) @asset.should respond_to(:quote_parameters) @asset.quote_parameters.should resp...
2007 Jul 24
11
Mock or Stub strategy for validates_uniqueness_of
Hi, I''m a bit stuck with mocking a unit test of a join model with regards to a validates_uniqueness_of clause. I have class Book < AR:B has_many :clippings various validates_presence_of etc end class Clip < AR:B has_many :clippings various validates_presence_of etc end class Clipping < AR:B belongs_to :book belongs_to :clip validates_uniqueness_of :clip_id,