require 'rails_helper' RSpec.describe "user_groups/new", type: :view do before(:each) do assign(:user_group, UserGroup.new( :name => "MyString", :visibility => "MyString", :members => "" )) end it "renders new user_group form" do render assert_select "form[action=?][method=?]", user_groups_path, "post" do assert_select "input[name=?]", "user_group[name]" assert_select "input[name=?]", "user_group[visibility]" assert_select "input[name=?]", "user_group[members]" end end end