Make step name more logical

This commit is contained in:
Anton Ilin 2014-03-06 22:51:47 +02:00 committed by Anton Ilin
parent e2ce10a9b2
commit 870f2e2ae8
2 changed files with 5 additions and 5 deletions

View file

@ -24,9 +24,9 @@ Feature: Hovercards
Scenario: Hovercards on the main stream in reshares
When I am on "bob@bob.bob"'s page
Then I should see "alice public stuff" within ".reshare"
When I activate hovercard for "Alice" within ".reshare"
When I hover "Alice" within ".reshare"
Then I should not see a hovercard
When I am on "alice@alice.alice"'s page
Then I should see "public stuff" within ".reshare"
When I activate hovercard for "Bob Jones" within ".reshare"
When I hover "Bob Jones" within ".reshare"
Then I should see a hovercard

View file

@ -3,7 +3,7 @@ When(/^I activate the first hovercard$/) do
end
Then(/^I should see a hovercard$/) do
page.should have_css '#hovercard'
page.should have_css('#hovercard')
end
When(/^I deactivate the first hovercard$/) do
@ -11,10 +11,10 @@ When(/^I deactivate the first hovercard$/) do
end
Then(/^I should not see a hovercard$/) do
page.should_not have_css '#hovercard'
page.should_not have_css('#hovercard')
end
When (/^I activate hovercard for "([^"]*)" within "([^"]*)"$/) do |name, selector|
When (/^I hover "([^"]*)" within "([^"]*)"$/) do |name, selector|
with_scope(selector) do
find(".author", text: name).hover
end