diaspora/features/step_definitions/link_steps.rb
2018-07-11 01:28:53 +02:00

7 lines
254 B
Ruby

# frozen_string_literal: true
When /^I open an external link to the first post of "([^"]*)"$/ do |email|
user = User.find_by(email: email)
post = user.posts.first
visit(link_path(q: "web+diaspora://#{user.diaspora_handle}/post/#{post.guid}"))
end