Sha256: e75fe4594a9e33d4a4384a150a5ca35ca86283d47c86a3419af1acc693170296
Contents?: true
Size: 744 Bytes
Versions: 27
Compression:
Stored size: 744 Bytes
Contents
require 'rails_helper' describe "produce_types/edit" do before(:each) do @produce_type = assign(:produce_type, stub_model(ProduceType, name: "MyString", display_name: "MyText", note: "MyText", position: 1 )) end it "renders the edit produce_type form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", action: produce_types_path(@produce_type), method: "post" do assert_select "input#produce_type_name", name: "produce_type[name]" assert_select "textarea#produce_type_display_name", name: "produce_type[display_name]" assert_select "textarea#produce_type_note", name: "produce_type[note]" end end end
Version data entries
27 entries across 27 versions & 1 rubygems