diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2015-07-04 22:07:18 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2015-07-05 21:46:18 +0300 |
commit | b0a9a6342fb962f61a9f535be20a63972b39e782 (patch) | |
tree | 199826f1d18c7e025694f855a618405cd7ab6e39 /spec/workers | |
parent | 97f973b80adb6033d9cd373036aa6264abcf5ab7 (diff) |
add url_to
closes #6168
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/http_multi_spec.rb | 6 |
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 |