Newer
Older
When /^I (?:like|unlike) the post "([^"]*)" in the stream$/ do |post_text|
like_stream_post(post_text)
Dennis Collinson
a validé
end
Then /^I should see an image in the publisher$/ do
photo_in_publisher.should be_present
end
Dennis Collinson
a validé
Then /^"([^"]*)" should be post (\d+)$/ do |post_text, position|
stream_element_numbers_content(position).should have_content(post_text)
Dennis Collinson
a validé
end
When /^I toggle all nsfw posts$/ do
all("a.toggle_nsfw_state").each &:click
end
Then /^I should have (\d+) nsfw posts$/ do |num_posts|