Remove a few unused cucumber steps
This commit is contained in:
parent
3467c8d996
commit
fa3cdeb8cb
3 changed files with 1 additions and 19 deletions
|
|
@ -151,14 +151,6 @@ When /^I search for "([^\"]*)"$/ do |search_term|
|
|||
JS
|
||||
end
|
||||
|
||||
Then /^I should( not)? see the contact dialog$/ do |not_see|
|
||||
if not_see
|
||||
wait_until { !page.find("#facebox").visible? }
|
||||
else
|
||||
wait_until { page.find("#facebox .share_with") && page.find("#facebox .share_with").visible? }
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should( not)? see an add contact button$/ do |not_see|
|
||||
expected_length = not_see ? 0 : 1
|
||||
evaluate_script("$('.add_contact a').length == #{expected_length};")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
When /^I click share across aspects$/ do
|
||||
find("#expand_publisher").click
|
||||
end
|
||||
|
||||
When /^I post a photo with a token$/ do
|
||||
json = JSON.parse <<JSON
|
||||
{"activity":{"actor":{"url":"http://cubbi.es/daniel","displayName":"daniel","objectType":"person"},"published":"2011-05-19T18:12:23Z","verb":"save","object":{"objectType":"photo","url":"http://i658.photobucket.com/albums/uu308/R3b3lAp3/Swagger_dog.jpg","image":{"url":"http://i658.photobucket.com/albums/uu308/R3b3lAp3/Swagger_dog.jpg","width":637,"height":469}},"provider":{"url":"http://cubbi.es/","displayName":"Cubbi.es"}}}
|
||||
|
|
@ -11,4 +7,4 @@ end
|
|||
|
||||
Then /^I should see an uploaded image within the photo drop zone$/ do
|
||||
find("#photodropzone img")["src"].should include("uploads/images")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -70,12 +70,6 @@ Given /^I have one follower$/ do
|
|||
@me.reload
|
||||
end
|
||||
|
||||
Then /^aspect "([^"]*)" should (not )?be selected$/ do |aspect_name, not_selected|
|
||||
link_is_selected = evaluate_script("$('a:contains(\"#{aspect_name}\")').parent('li').hasClass('selected');")
|
||||
expected_value = !not_selected
|
||||
link_is_selected.should == expected_value
|
||||
end
|
||||
|
||||
Given /^a user with email "([^"]*)" is connected with "([^"]*)"$/ do |arg1, arg2|
|
||||
user1 = User.where(:email => arg1).first
|
||||
user2 = User.where(:email => arg2).first
|
||||
|
|
|
|||
Loading…
Reference in a new issue