Sha256: c170bdbef3ca523267519be3d9b280a49bd546829505f076bc3db98b9b6d4ad4
Contents?: true
Size: 556 Bytes
Versions: 15
Compression:
Stored size: 556 Bytes
Contents
require 'rails_helper' RSpec.describe "products/new", :type => :view do before(:each) do assign(:product, Product.new( :name => "MyString", :code => "MyString", :price => "9.99" )) end it "renders new product form" do render assert_select "form[action=?][method=?]", products_path, "post" do assert_select "input#product_name[name=?]", "product[name]" assert_select "input#product_code[name=?]", "product[code]" assert_select "input#product_price[name=?]", "product[price]" end end end
Version data entries
15 entries across 15 versions & 1 rubygems