diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2017-08-27 19:04:06 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2017-09-17 20:29:15 +0300 |
commit | e82690963dc55d10491b8da6b4fc0b6f397bea6d (patch) | |
tree | 0da8602a3b52edd540d2fa16ca4bc5d7d228636c /spec/workers | |
parent | 44ebc7375a3dcf838fb1959b6828cac31fbcb498 (diff) |
Add `# frozen_string_literal: true` to all files
Diffstat (limited to 'spec/workers')
28 files changed, 56 insertions, 0 deletions
diff --git a/spec/workers/deferred_dispatch_spec.rb b/spec/workers/deferred_dispatch_spec.rb index f39a1ac98..803a5e83a 100644 --- a/spec/workers/deferred_dispatch_spec.rb +++ b/spec/workers/deferred_dispatch_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::DeferredDispatch do it "handles non existing records gracefully" do expect { diff --git a/spec/workers/delete_account_spec.rb b/spec/workers/delete_account_spec.rb index 8c6fbff89..374564895 100644 --- a/spec/workers/delete_account_spec.rb +++ b/spec/workers/delete_account_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright (c) 2010-2011, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/spec/workers/delete_post_from_service_spec.rb b/spec/workers/delete_post_from_service_spec.rb index 4aee4aef7..48a9b85c1 100644 --- a/spec/workers/delete_post_from_service_spec.rb +++ b/spec/workers/delete_post_from_service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::DeletePostFromService do it "calls service#delete_from_service with given opts" do service = double diff --git a/spec/workers/export_photos_spec.rb b/spec/workers/export_photos_spec.rb index e5ee4c47d..8fb79617b 100644 --- a/spec/workers/export_photos_spec.rb +++ b/spec/workers/export_photos_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::ExportPhotos do before do allow(User).to receive(:find).with(alice.id).and_return(alice) diff --git a/spec/workers/export_user_spec.rb b/spec/workers/export_user_spec.rb index 65ebfb356..72b0c341f 100644 --- a/spec/workers/export_user_spec.rb +++ b/spec/workers/export_user_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::ExportUser do before do allow(User).to receive(:find).with(alice.id).and_return(alice) diff --git a/spec/workers/fetch_profile_photo_spec.rb b/spec/workers/fetch_profile_photo_spec.rb index 66106b278..ab99e6b20 100644 --- a/spec/workers/fetch_profile_photo_spec.rb +++ b/spec/workers/fetch_profile_photo_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::FetchProfilePhoto do before do @user = alice diff --git a/spec/workers/fetch_webfinger_spec.rb b/spec/workers/fetch_webfinger_spec.rb index 7a3b667fb..234c7d215 100644 --- a/spec/workers/fetch_webfinger_spec.rb +++ b/spec/workers/fetch_webfinger_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::FetchWebfinger do it "should webfinger and queue a job to fetch public posts" do @person = FactoryGirl.create(:person) diff --git a/spec/workers/gather_o_embed_data_spec.rb b/spec/workers/gather_o_embed_data_spec.rb index 6d9fe1484..298fd4585 100644 --- a/spec/workers/gather_o_embed_data_spec.rb +++ b/spec/workers/gather_o_embed_data_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::GatherOEmbedData do before do @flickr_oembed_data = { diff --git a/spec/workers/gather_open_graph_data_spec.rb b/spec/workers/gather_open_graph_data_spec.rb index 74aefe548..c5a91c058 100644 --- a/spec/workers/gather_open_graph_data_spec.rb +++ b/spec/workers/gather_open_graph_data_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::GatherOpenGraphData do before do @ogsite_title = 'Homepage' diff --git a/spec/workers/mail/csrf_token_fail_spec.rb b/spec/workers/mail/csrf_token_fail_spec.rb index 8c94f8663..010d7474e 100644 --- a/spec/workers/mail/csrf_token_fail_spec.rb +++ b/spec/workers/mail/csrf_token_fail_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright (c) 2010-2011, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/spec/workers/mail/invite_email_spec.rb b/spec/workers/mail/invite_email_spec.rb index 70ad6a2c9..44e0cef79 100644 --- a/spec/workers/mail/invite_email_spec.rb +++ b/spec/workers/mail/invite_email_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::Mail::InviteEmail do let(:emails) { ['foo@bar.com', 'baz@bar.com'] } let(:message) { 'get over here!' } diff --git a/spec/workers/mail/liked_spec.rb b/spec/workers/mail/liked_spec.rb index 7ab94586a..565305937 100644 --- a/spec/workers/mail/liked_spec.rb +++ b/spec/workers/mail/liked_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::Mail::Liked do describe "#perform" do it "should call .deliver_now on the notifier object" do diff --git a/spec/workers/mail/mentioned_spec.rb b/spec/workers/mail/mentioned_spec.rb index cc06f5d58..a96c6b966 100644 --- a/spec/workers/mail/mentioned_spec.rb +++ b/spec/workers/mail/mentioned_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright (c) 2010-2011, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/spec/workers/mail/private_message_spec.rb b/spec/workers/mail/private_message_spec.rb index 7b8401986..623897150 100644 --- a/spec/workers/mail/private_message_spec.rb +++ b/spec/workers/mail/private_message_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright (c) 2010-2011, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/spec/workers/mail/reshared_spec.rb b/spec/workers/mail/reshared_spec.rb index d1ebd9908..595f1b78b 100644 --- a/spec/workers/mail/reshared_spec.rb +++ b/spec/workers/mail/reshared_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright (c) 2010-2011, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/spec/workers/post_to_service_spec.rb b/spec/workers/post_to_service_spec.rb index 1a4370b81..8c3fe0ef6 100644 --- a/spec/workers/post_to_service_spec.rb +++ b/spec/workers/post_to_service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::PostToService do it 'calls service#post with the given service' do user = alice diff --git a/spec/workers/process_photo_spec.rb b/spec/workers/process_photo_spec.rb index e7bfc5312..e9c7e645e 100644 --- a/spec/workers/process_photo_spec.rb +++ b/spec/workers/process_photo_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::ProcessPhoto do before do @user = alice diff --git a/spec/workers/publish_to_hub_spec.rb b/spec/workers/publish_to_hub_spec.rb index 62656d4de..a98d035c4 100644 --- a/spec/workers/publish_to_hub_spec.rb +++ b/spec/workers/publish_to_hub_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright (c) 2010-2011, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/spec/workers/queue_users_for_removal_spec.rb b/spec/workers/queue_users_for_removal_spec.rb index 19c25cc0a..a87d4664f 100644 --- a/spec/workers/queue_users_for_removal_spec.rb +++ b/spec/workers/queue_users_for_removal_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::QueueUsersForRemoval do describe 'remove_old_users is active' do before do diff --git a/spec/workers/receive_private_spec.rb b/spec/workers/receive_private_spec.rb index b4089e51c..288db75e3 100644 --- a/spec/workers/receive_private_spec.rb +++ b/spec/workers/receive_private_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::ReceivePrivate do let(:data) { "<xml></xml>" } diff --git a/spec/workers/receive_public_spec.rb b/spec/workers/receive_public_spec.rb index 62e6a5632..2b97dbd20 100644 --- a/spec/workers/receive_public_spec.rb +++ b/spec/workers/receive_public_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::ReceivePublic do let(:data) { "<xml></xml>" } diff --git a/spec/workers/recheck_offline_pods_spec.rb b/spec/workers/recheck_offline_pods_spec.rb index 6dc59b0e5..cd1ab90b0 100644 --- a/spec/workers/recheck_offline_pods_spec.rb +++ b/spec/workers/recheck_offline_pods_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::RecheckScheduledPods do it "performs a connection test on all scheduled pods" do (0..4).map { FactoryGirl.create(:pod) } diff --git a/spec/workers/recurring_pod_check_spec.rb b/spec/workers/recurring_pod_check_spec.rb index cba3c0543..f5ed5e65a 100644 --- a/spec/workers/recurring_pod_check_spec.rb +++ b/spec/workers/recurring_pod_check_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::RecurringPodCheck do before do @pods = (0..4).map do diff --git a/spec/workers/remove_old_user_spec.rb b/spec/workers/remove_old_user_spec.rb index 91c3efa9e..d1b76b6ce 100644 --- a/spec/workers/remove_old_user_spec.rb +++ b/spec/workers/remove_old_user_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::RemoveOldUser do describe 'remove_old_users is active' do before do diff --git a/spec/workers/reset_password_spec.rb b/spec/workers/reset_password_spec.rb index faf829e69..c57cf52d3 100644 --- a/spec/workers/reset_password_spec.rb +++ b/spec/workers/reset_password_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::ResetPassword do describe "#perform" do it "given a user id it sends the reset password instructions for that user" do diff --git a/spec/workers/send_base_spec.rb b/spec/workers/send_base_spec.rb index 5c0bb6610..c7961451b 100644 --- a/spec/workers/send_base_spec.rb +++ b/spec/workers/send_base_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::SendBase do it "retries first time after at least 256 seconds" do retry_delay = Workers::SendBase.new.send(:seconds_to_delay, 1) diff --git a/spec/workers/send_private_spec.rb b/spec/workers/send_private_spec.rb index e3d9a99bc..622c1e93e 100644 --- a/spec/workers/send_private_spec.rb +++ b/spec/workers/send_private_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::SendPrivate do let(:sender_id) { "any_user@example.org" } let(:obj_str) { "status_message@guid" } diff --git a/spec/workers/send_public_spec.rb b/spec/workers/send_public_spec.rb index 4f87ddb33..cd53b581e 100644 --- a/spec/workers/send_public_spec.rb +++ b/spec/workers/send_public_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Workers::SendPublic do let(:sender_id) { "any_user@example.org" } let(:obj_str) { "status_message@guid" } |