Sha256: a6f2991e63cb16cfee933b730618cad82ea0ded294fceb0cbffe3dd310e4672d
Contents?: true
Size: 749 Bytes
Versions: 9
Compression:
Stored size: 749 Bytes
Contents
require 'spec_helper' # describe "purchases/new" do # before(:each) do # assign(:purchase, stub_model(Purchase, # :title => "MyString", # :description => "MyText", # :warranty_duration => 1 # ).as_new_record) # end # # it "renders new purchase form" do # render # # # Run the generator again with the --webrat flag if you want to use webrat matchers # assert_select "form", :action => purchases_path, :method => "post" do # assert_select "input#purchase_title", :name => "purchase[title]" # assert_select "textarea#purchase_description", :name => "purchase[description]" # assert_select "input#purchase_warranty_duration", :name => "purchase[warranty_duration]" # end # end # end
Version data entries
9 entries across 9 versions & 1 rubygems