Skip to content

Instantly share code, notes, and snippets.

@ralfting
Created September 11, 2019 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralfting/3aa44bfe5e1d7a2a2da32864e32e66ae to your computer and use it in GitHub Desktop.
Save ralfting/3aa44bfe5e1d7a2a2da32864e32e66ae to your computer and use it in GitHub Desktop.
it 'creates claim with current user data prefilled' do
click_link('Claim', match: :first)
click_on 'Submit'
expect(page).to have_current_path(listing_path(@new_listing))
.and(have_text(I18n.t('claims.create.success')))
.and(not_have_link('Claim', href: new_listing_claim_path(@new_listing)))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment