require 'rails_helper' RSpec.describe "user_groups/show", type: :view do before(:each) do @user_group = assign(:user_group, UserGroup.create!( :name => "Name", :visibility => "Visibility", :members => "" )) end it "renders attributes in
" do render expect(rendered).to match(/Name/) expect(rendered).to match(/Visibility/) expect(rendered).to match(//) end end