Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tag_steps.rb « step_definitions « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d7d104b9c47d14618d5ccf9484a2926c30a7705a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

When(/^I unfollow the "(.*?)" tag$/) do |tag|
  accept_alert do
    within("#tags_list") do
      li = find("li", text: tag)
      li.hover
      li.find(".delete-tag-following").click
    end
  end
end

When /^I follow the "(.*?)" tag$/ do |tag|
  TagFollowing.create!(tag: FactoryGirl.create(:tag, name: tag), user: @me)
end