Sha256: 89d17b09aef23f15e16d0763108f72fc213ab44e502ffd1c9237634bf466ee94
Contents?: true
Size: 378 Bytes
Versions: 15
Compression:
Stored size: 378 Bytes
Contents
require 'rails_helper' RSpec.describe "categories/new", :type => :view do before(:each) do assign(:category, Category.new( :name => "MyString" )) end it "renders new category form" do render assert_select "form[action=?][method=?]", categories_path, "post" do assert_select "input#category_name[name=?]", "category[name]" end end end
Version data entries
15 entries across 15 versions & 1 rubygems