search for: list_price

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

Did you mean: last_price
2007 Nov 20
3
How to test views with Nested Resources and Partials
....stub!(:serial_num).and_return("MyString") @line_item.stub!(:description).and_return("MyString") @line_item.stub!(:begins).and_return(Date.today) @line_item.stub!(:ends).and_return(Date.today) @line_item.stub!(:qty).and_return("1") @line_item.stub!(:list_price).and_return("1") assigns[:line_item] = @line_item end it "should render edit form" do render "line_items/edit.haml" response.should have_tag("form[action=#{contract_line_item_path(@contract.id, at line_item.id)}][method=post]") do...