Sha256: d16573099e7efd154f9db7585b618215cef71752ac13bb396611675949154add
Contents?: true
Size: 654 Bytes
Versions: 6
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'issue_comments/show', type: :view do let(:user) { FactoryGirl.create(:user) } let(:project) { FactoryGirl.create(:project, owner: user) } let(:issue) { FactoryGirl.create(:issue, project: project, creator: user) } let(:issue_comment) { FactoryGirl.create(:issue_comment, issue: issue, user: user) } before(:each) do assign(:issue_comment, issue_comment) end it 'renders attributes in <p>' do render expect(rendered).to match(/issue1/) expect(rendered).to match(/user1@example.com/) expect(rendered).to match(/issue_comment_description_1/) end end
Version data entries
6 entries across 6 versions & 1 rubygems