|
83 | 83 | 'Revenue [Team]', 'Color [Team]', 'Custom field [Team]', 'Main Sponsor [Team]', 'Id [Draft]', 'Created at [Draft]', |
84 | 84 | 'Updated at [Draft]', 'Date [Draft]', 'Round [Draft]', 'Pick [Draft]', 'Overall [Draft]', |
85 | 85 | 'College [Draft]', 'Notes [Draft]', 'Id [Comments]', 'Content [Comments]', 'Created at [Comments]', |
86 | | - 'Updated at [Comments]', 'Boolean field [Comments]'] |
| 86 | + 'Updated at [Comments]'] |
87 | 87 | expect(csv.flatten).to include("#{player.name} exported") |
88 | 88 | expect(csv.flatten).to include(player.team.name) |
89 | 89 | expect(csv.flatten).to include(player.draft.college) |
|
115 | 115 | select "<comma> ','", from: 'csv_options_generator_col_sep' |
116 | 116 | click_button 'Export to csv' |
117 | 117 | csv = CSV.parse page.driver.response.body |
118 | | - expect(csv[0]).to match_array ['Id', 'Commentable', 'Commentable type', 'Content', 'Created at', 'Updated at', 'Boolean field'] |
| 118 | + expect(csv[0]).to match_array ['Id', 'Commentable', 'Commentable type', 'Content', 'Created at', 'Updated at'] |
119 | 119 | csv[1..].each do |line| |
120 | 120 | expect(line[csv[0].index('Commentable')]).to eq(player.id.to_s) |
121 | 121 | expect(line[csv[0].index('Commentable type')]).to eq(player.class.to_s) |
|
0 commit comments