Skip to content
Extraits de code Groupes Projets
Valider e5d37c79 rédigé par Pistos's avatar Pistos
Parcourir les fichiers

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
...@@ -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
......
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