Sha256: 59dbb99dd0b7ed3b6478e587e7deeb22a5fd9488146d9c82a3eacc453963a9c3
Contents?: true
Size: 757 Bytes
Versions: 57
Compression:
Stored size: 757 Bytes
Contents
require 'spec_helper' describe "budget_types/edit" do before(:each) do @budget_type = assign(:budget_type, stub_model(BudgetType, :name => "MyString", :display_name => "MyText", :note => "MyText", :position => 1 )) end it "renders the edit budget_type form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => budget_types_path(@budget_type), :method => "post" do assert_select "input#budget_type_name", :name => "budget_type[name]" assert_select "textarea#budget_type_display_name", :name => "budget_type[display_name]" assert_select "textarea#budget_type_note", :name => "budget_type[note]" end end end
Version data entries
57 entries across 57 versions & 1 rubygems