Sha256: a5ed58a15c06db38b413218b02057020f3ee5672497984e4ef97dd5e12e1213c
Contents?: true
Size: 758 Bytes
Versions: 11
Compression:
Stored size: 758 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
11 entries across 9 versions & 2 rubygems