Sha256: bd8c240af01d85a5a26e0f50b6dcd9ac7473edcbd5b8fb673f18708100d7d287
Contents?: true
Size: 840 Bytes
Versions: 6
Compression:
Stored size: 840 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'issues/index', type: :view do let(:user) { FactoryGirl.create(:user) } let(:project) { FactoryGirl.create(:project, owner: user) } before(:each) do assign(:issues, [ FactoryGirl.create(:issue, project: project, creator: user, title: 'issue1'), FactoryGirl.create(:issue, project: project, creator: user, title: 'issue2'), ]) end it 'renders a list of issues' do render assert_select 'tr>td', text: 'project1', count: 2 assert_select 'tr>td', text: 'issue1', count: 1 assert_select 'tr>td', text: 'issue2', count: 1 assert_select 'tr>td', text: 'Draft', count: 2 assert_select 'tr>td', text: 'user1@example.com', count: 2 assert_select 'tr>td', text: 'user1@example.com', count: 2 end end
Version data entries
6 entries across 6 versions & 1 rubygems