Skip to content

Commit

Permalink
Fix test to account for humanized class names
Browse files Browse the repository at this point in the history
  • Loading branch information
Janell-Huyck committed Feb 27, 2024
1 parent e1e98f4 commit 26c611b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/author_management/adding_authors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
# and that a success message is displayed
click_on 'Submit'
expect(page).to have_current_path(Rails.application.routes.url_helpers.publications_path)
expect(page).to have_text 'OtherPublication was successfully created.'
expect(page).to have_text 'Other Publication was successfully created.'

# Click on the hyperlink on the id of the newly created publication
# and verify that the author names are correct
Expand Down Expand Up @@ -121,7 +121,7 @@
# and that the author names are correct
click_on 'Submit'
expect(page).to have_current_path(Rails.application.routes.url_helpers.other_publication_path(OtherPublication.last.id))
expect(page).to have_text 'OtherPublication was successfully updated.'
expect(page).to have_text 'Other Publication was successfully updated.'
expect(page).to have_selector('td', text: 'First0 Last0, First1 Last1, First2 Last2') # Information is in table format on the show page
end
end

0 comments on commit 26c611b

Please sign in to comment.