Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Staudacher <florian_staudacher@yahoo.de>2015-08-28 03:13:19 +0300
committerFlorian Staudacher <florian_staudacher@yahoo.de>2015-08-30 19:50:34 +0300
commit738413c65f43ac2d01c113c294c484858e8cb3d7 (patch)
tree27b7e3b5cd1e90e0830cfff73f25b6b5ab691c83 /spec/workers
parent39fb1a6db23bd6ee2ac681c04197c47163f69361 (diff)
fix some issues with pod-checking
add tooltips in the frontend fix a JS problem with empty hostname use `find_in_batches` correctly add a migration to clean up the pods table + unique index on hostname
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/recurring_pod_check_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/recurring_pod_check_spec.rb b/spec/workers/recurring_pod_check_spec.rb
index b7f240f1e..fec3b7f24 100644
--- a/spec/workers/recurring_pod_check_spec.rb
+++ b/spec/workers/recurring_pod_check_spec.rb
@@ -4,11 +4,11 @@ require "spec_helper"
describe Workers::RecurringPodCheck do
before do
@pods = (0..4).map do
- FactoryGirl.create(:pod).tap { |pod|
+ FactoryGirl.build(:pod).tap { |pod|
expect(pod).to receive(:test_connection!)
}
end
- allow(Pod).to receive(:find_in_batches) { @pods }
+ allow(Pod).to receive(:find_in_batches).and_yield(@pods)
end
it "performs a connection test on all existing pods" do