Skip to content
Extraits de code Groupes Projets
Valider fa3cdeb8 rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Remove a few unused cucumber steps

parent 3467c8d9
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -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};")
......
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
\ No newline at end of file
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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter