search for: quote_paramet

Displaying 3 results from an estimated 3 matches for "quote_paramet".

2007 Mar 26
2
Failure creating model in spec setup not reported?
...t;Fred", :last_name => "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_pa...
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,
2007 Jan 18
0
Best way to specify an HTML element inside another
...have is preliminary but I can''t resist using it... I have a form that contains a date select (Rails-generated). I want to specify that the default value for each popup menu is correct The best I can manage is this: response.should_have "form > p > select[name=''quote_parameters [purchase_date(3i)]''] > option[selected=''selected'']", :text => ''16'' I really want to specify two attributes for the <option> tag, like option[selected=''selected'',value=''16''] - is there any synta...