Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
P
parlote-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
parlote-facil
Validations
e5d37c79
Valider
e5d37c79
rédigé
il y a 13 ans
par
Pistos
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Whitespace cleanup.
parent
6c68fd75
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
spec/models/status_message_spec.rb
+3
-3
3 ajouts, 3 suppressions
spec/models/status_message_spec.rb
avec
3 ajouts
et
3 suppressions
spec/models/status_message_spec.rb
+
3
−
3
Voir le fichier @
e5d37c79
...
@@ -20,7 +20,7 @@ describe StatusMessage do
...
@@ -20,7 +20,7 @@ describe StatusMessage do
describe
'scopes'
do
describe
'scopes'
do
describe
'.where_person_is_mentioned'
do
describe
'.where_person_is_mentioned'
do
it
'returns status messages where the given person is mentioned'
do
it
'returns status messages where the given person is mentioned'
do
@bo
=
bob
.
person
@bo
=
bob
.
person
@test_string
=
"@{Daniel;
#{
@bo
.
diaspora_handle
}
} can mention people like Raph"
@test_string
=
"@{Daniel;
#{
@bo
.
diaspora_handle
}
} can mention people like Raph"
Factory
.
create
(
:status_message
,
:text
=>
@test_string
)
Factory
.
create
(
:status_message
,
:text
=>
@test_string
)
...
@@ -316,7 +316,7 @@ STR
...
@@ -316,7 +316,7 @@ STR
@status_message
.
after_dispatch
(
alice
)
@status_message
.
after_dispatch
(
alice
)
end
end
end
end
describe
'#contains_url_in_text?'
do
describe
'#contains_url_in_text?'
do
it
'returns an array of all urls found in the raw message'
do
it
'returns an array of all urls found in the raw message'
do
sm
=
Factory
(
:status_message
,
:text
=>
'http://youtube.com is so cool. so is https://joindiaspora.com'
)
sm
=
Factory
(
:status_message
,
:text
=>
'http://youtube.com is so cool. so is https://joindiaspora.com'
)
...
@@ -328,7 +328,7 @@ STR
...
@@ -328,7 +328,7 @@ STR
describe
'oembed'
do
describe
'oembed'
do
it
'should queue a GatherOembedData if it includes a link'
do
it
'should queue a GatherOembedData if it includes a link'
do
sm
=
Factory
.
build
(
:status_message
,
:text
=>
'http://youtube.com is so cool. so is https://joindiaspora.com'
)
sm
=
Factory
.
build
(
:status_message
,
:text
=>
'http://youtube.com is so cool. so is https://joindiaspora.com'
)
Resque
.
should_receive
(
:enqueue
).
with
(
Jobs
::
GatherOEmbedData
,
instance_of
(
Fixnum
),
instance_of
(
String
))
Resque
.
should_receive
(
:enqueue
).
with
(
Jobs
::
GatherOEmbedData
,
instance_of
(
Fixnum
),
instance_of
(
String
))
sm
.
save
sm
.
save
end
end
end
end
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter