File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 44
44
<% if import . exact_duplicate_record_count . present? %>
45
45
<%= summary_list . with_row do |row | %>
46
46
<%= row . with_key { "Duplicates not imported" } %>
47
- <%= row . with_value {
48
- import . exact_duplicate_record_count == 1 ?
49
- "1 record was not imported because it already exists in Mavis" :
50
- "#{ import . exact_duplicate_record_count } records were not imported because they already exist in Mavis"
51
- } %>
47
+ <%= row . with_value do %>
48
+ <% if import . exact_duplicate_record_count . zero? %>
49
+ None
50
+ <% else %>
51
+ <%= import . exact_duplicate_record_count == 1 ?
52
+ "1 record was not imported because it already exists in Mavis" :
53
+ "#{ import . exact_duplicate_record_count } records were not imported because they already exist in Mavis" %>
54
+ <% end %>
55
+ <% end %>
52
56
<% end %>
53
57
<% end %>
54
58
Original file line number Diff line number Diff line change @@ -102,9 +102,8 @@ def and_i_upload_a_file_with_a_twin
102
102
end
103
103
104
104
def then_i_should_see_the_import_page_with_successful_import
105
- expect ( page ) . to have_content (
106
- "0 records were not imported because they already exist in Mavis"
107
- )
105
+ expect ( page ) . not_to have_content ( "already exist in Mavis" )
106
+ expect ( page ) . to have_content ( "Duplicates not imported None" )
108
107
expect ( Patient . count ) . to eq ( 4 )
109
108
end
110
109
You can’t perform that action at this time.
0 commit comments