Sha256: fedf807f0f7f8008cc12040121f621e0e680efb3e4fd082755c749e9539ee0dc
Contents?: true
Size: 731 Bytes
Versions: 21
Compression:
Stored size: 731 Bytes
Contents
require 'rails_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
21 entries across 21 versions & 1 rubygems