Sha256: 29f13f2e941f32eba9474b57ca1b81ea9bdd18e04ad36ab5187035c82029e0cc
Contents?: true
Size: 681 Bytes
Versions: 3
Compression:
Stored size: 681 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'attached_files/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) } let(:attached_file) { FactoryGirl.create(:attached_file, issue_comment: issue_comment) } before(:each) do assign(:attached_file, attached_file) end it 'renders attributes in <p>' do render expect(rendered).to match(/1/) expect(rendered).to match(/attached_file_url_1/) end end
Version data entries
3 entries across 3 versions & 1 rubygems