|
|
@ -192,8 +192,8 @@ RSpec.describe DuplicateLogsController, type: :request do |
|
|
|
expect(page).to have_button(text: "Delete this log") |
|
|
|
expect(page).to have_button(text: "Delete this log") |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: sales_log_path(duplicate_log.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: sales_log_path(duplicate_log.id)) |
|
|
|
expect(page).not_to have_link(text: "Log #{id}", href: sales_log_path(id)) |
|
|
|
expect(page).not_to have_link(text: "Log #{id}", href: sales_log_path(id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: sales_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: sales_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
expect(page).to have_link(text: "Back", href: sales_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Back", href: sales_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -210,8 +210,8 @@ RSpec.describe DuplicateLogsController, type: :request do |
|
|
|
expect(page).to have_button(text: "Delete these logs") |
|
|
|
expect(page).to have_button(text: "Delete these logs") |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: sales_log_path(duplicate_log.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: sales_log_path(duplicate_log.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log_2.id}", href: sales_log_path(duplicate_log_2.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log_2.id}", href: sales_log_path(duplicate_log_2.id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: sales_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: sales_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
expect(page).to have_link(text: "Back", href: sales_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Back", href: sales_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -267,8 +267,8 @@ RSpec.describe DuplicateLogsController, type: :request do |
|
|
|
expect(page).to have_button(text: "Delete this log") |
|
|
|
expect(page).to have_button(text: "Delete this log") |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: lettings_log_path(duplicate_log.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: lettings_log_path(duplicate_log.id)) |
|
|
|
expect(page).not_to have_link(text: "Log #{id}", href: lettings_log_path(id)) |
|
|
|
expect(page).not_to have_link(text: "Log #{id}", href: lettings_log_path(id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: lettings_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: lettings_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
expect(page).to have_link(text: "Back", href: lettings_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Back", href: lettings_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -285,8 +285,8 @@ RSpec.describe DuplicateLogsController, type: :request do |
|
|
|
expect(page).to have_button(text: "Delete these logs") |
|
|
|
expect(page).to have_button(text: "Delete these logs") |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: lettings_log_path(duplicate_log.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log.id}", href: lettings_log_path(duplicate_log.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log_2.id}", href: lettings_log_path(duplicate_log_2.id)) |
|
|
|
expect(page).to have_link(text: "Log #{duplicate_log_2.id}", href: lettings_log_path(duplicate_log_2.id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: lettings_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Cancel", href: lettings_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
expect(page).to have_link(text: "Back", href: lettings_log_duplicate_logs_path(id)) |
|
|
|
expect(page).to have_link(text: "Back", href: lettings_log_duplicate_logs_path(id, original_log_id: id)) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|