Sha256: b26d4b105abd919287c6148e117d15ce35c620a5c1b7682eba4837e0bb2ae466
Contents?: true
Size: 951 Bytes
Versions: 2
Compression:
Stored size: 951 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'attached_files/edit', type: :view do let(:user) { FactoryBot.create(:user) } let(:project) { FactoryBot.create(:project, owner: user) } let(:issue) { FactoryBot.create(:issue, project: project, creator: user) } let(:issue_comment) { FactoryBot.create(:issue_comment, issue: issue, user: user) } let(:attached_file) { FactoryBot.create(:attached_file, issue_comment: issue_comment) } before(:each) do assign(:attached_file, attached_file) end it 'renders the edit attached_file form' do render assert_select 'form[action=?][method=?]', attached_file_path(attached_file), 'post' do assert_select 'input#attached_file_id[name=?]', 'attached_file[id]' assert_select 'select#attached_file_issue_comment_id[name=?]', 'attached_file[issue_comment_id]' assert_select 'input#attached_file_url[name=?]', 'attached_file[url]' end end end
Version data entries
2 entries across 1 versions & 1 rubygems