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:
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/http_multi_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/workers/http_multi_spec.rb b/spec/workers/http_multi_spec.rb
index 594f107eb..a4831614b 100644
--- a/spec/workers/http_multi_spec.rb
+++ b/spec/workers/http_multi_spec.rb
@@ -110,8 +110,7 @@ describe Workers::HttpMulti do
it 'updates http users who have moved to https' do
person = @people.first
- person.url = 'http://remote.net/'
- person.save
+ person.update_url("http://remote.net/")
response = Typhoeus::Response.new(
code: 301,
@@ -123,8 +122,7 @@ describe Workers::HttpMulti do
Typhoeus.stub(person.receive_url).and_return response
Workers::HttpMulti.new.perform bob.id, @post_xml, [person.id], "Postzord::Dispatcher::Private"
- person.reload
- expect(person.url).to eq("https://remote.net/")
+ expect(Person.find(person.id).url).to eq("https://remote.net/")
end
it 'only sends to users with valid RSA keys' do