Sha256: 1e2ade4c882c98be5574424ef87605d02ca03001d622c345c055949c74272c0d
Contents?: true
Size: 932 Bytes
Versions: 6
Compression:
Stored size: 932 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'issue_comments/new', 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.build(:issue_comment, issue: issue, user: user) } before(:each) do assign(:issue_comment, issue_comment) end it 'renders new issue_comment form' do render assert_select 'form[action=?][method=?]', issue_comments_path, 'post' do assert_select 'input#issue_comment_id[name=?]', 'issue_comment[id]' assert_select 'select#issue_comment_issue_id[name=?]', 'issue_comment[issue_id]' assert_select 'select#issue_comment_user_id[name=?]', 'issue_comment[user_id]' assert_select 'textarea#issue_comment_description[name=?]', 'issue_comment[description]' end end end
Version data entries
6 entries across 6 versions & 1 rubygems