Skip to content

Instantly share code, notes, and snippets.

Embed
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: 'http://www.imgur.com/1.1.1-updated_today.png'
click_button 'Submit'
expect(page).to have_xpath '//img[@src="http://www.imgur.com/1.1.1-updated_today.png"]'
end
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.