Skip to content
Extraits de code Groupes Projets
Valider cd765f26 rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

Upgrade ruby to 2.3.1

parent ff229aa9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
ruby-2.2.4 2.3.1
...@@ -18,7 +18,7 @@ addons: ...@@ -18,7 +18,7 @@ addons:
postgresql: 9.4 postgresql: 9.4
rvm: rvm:
- 2.2.4 - 2.3.1
services: services:
- redis-server - redis-server
......
FROM ruby:2.2.4 FROM ruby:2.3.1
ENV RAILS_ENV=production ENV RAILS_ENV=production
......
...@@ -8,9 +8,7 @@ RSpec.describe ReblogService do ...@@ -8,9 +8,7 @@ RSpec.describe ReblogService do
subject { ReblogService.new } subject { ReblogService.new }
before do before do
Rails.configuration.x.hub_url = 'http://hub.example.com' stub_request(:post, Rails.configuration.x.hub_url)
stub_request(:post, 'http://hub.example.com')
stub_request(:post, 'http://salmon.example.com') stub_request(:post, 'http://salmon.example.com')
subject.(alice, status) subject.(alice, status)
...@@ -21,7 +19,7 @@ RSpec.describe ReblogService do ...@@ -21,7 +19,7 @@ RSpec.describe ReblogService do
end end
it 'pings PubSubHubbub hubs' do it 'pings PubSubHubbub hubs' do
expect(a_request(:post, 'http://hub.example.com')).to have_been_made expect(a_request(:post, Rails.configuration.x.hub_url)).to have_been_made
end end
it 'sends a Salmon slap for a remote reblog' do it 'sends a Salmon slap for a remote reblog' do
......
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