Skip to content
Extraits de code Groupes Projets
Valider 27864660 rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

add feature for mentions

parent 272ab554
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
@javascript
Feature: Mentions
As user
I want to mention another user and have a link to them
To show people that this person exsists.
Scenario: A user mentions another user and it displays correctly
Given a user named "Bob Jones" with email "bob@bob.bob"
And a user named "Alice Smith" with email "alice@alice.alice"
And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
And Alice has a post mentioning Bob
When I sign in as "alice@alice.alice"
And I am on the home page
And I follow "Bob Jones"
Then I should see "Bob Jones"
And /^Alice has a post mentioning Bob$/ do
alice = User.find_by_email 'alice@alice.alice'
bob = User.find_by_email 'bob@bob.bob'
aspect = alice.aspects.first
alice.post(:status_message, :text => "@{Bob Jones; #{bob.person.diaspora_handle}}", :to => alice.aspects.first)
end
When /^I fill in a mention for bob into the publisher$/ do
bob = User.find_by_email 'bob@bob.bob'
And 'I fill in "status_message_fake_text" with "Hi, @{Bob Jones; #{bob.person.diaspora_handle}} long time no see'
end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter