Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Given user is logged in and on users#show
# When user edits a proof
# Then user expects to see the updated proof on users#show
scenario 'user edits a proof' do
proof = create(:proof)
create(:standard, name: "1.1.1", proof: proof)
visit signin_path
click_link 'Edit proof'
fill_in 'proof_image_url', with: ''
click_button 'Submit'
expect(page).to have_xpath '//img[@src=""]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.