Sha256: b558eefd01775c554b2b12d4b9b497747b86892f80072e11af6d7b7512621bde
Contents?: true
Size: 841 Bytes
Versions: 2
Compression:
Stored size: 841 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'project_assignments/index', type: :view do let(:user) { FactoryBot.create(:user) } let(:project) { FactoryBot.create(:project, owner: user) } before(:each) do assign(:project_assignments, [ FactoryBot.create(:project_assignment, project: project, user: user), FactoryBot.create(:project_assignment, project: project, user: user), ]) end it 'renders a list of project_assignments' do render assert_select 'tr>td', text: 'project1', count: 2 assert_select 'tr>td', text: 'user1@example.com', count: 2 assert_select 'tr>td', text: localize(Time.zone.parse('2020-03-22 09:50:00 +09:00')), count: 2 assert_select 'tr>td', text: localize(Time.zone.parse('2020-03-22 23:40:00 +09:00')), count: 2 end end
Version data entries
2 entries across 1 versions & 1 rubygems