Browse Source

Upgrade ruby to 2.3.1

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
cd765f26a9
4 changed files with 5 additions and 7 deletions
  1. +1
    -1
      .ruby-version
  2. +1
    -1
      .travis.yml
  3. +1
    -1
      Dockerfile.app
  4. +2
    -4
      spec/services/reblog_service_spec.rb

+ 1
- 1
.ruby-version View File

@ -1 +1 @@
ruby-2.2.4
2.3.1

+ 1
- 1
.travis.yml View File

@ -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

+ 1
- 1
Dockerfile.app View File

@ -1,4 +1,4 @@
FROM ruby:2.2.4
FROM ruby:2.3.1
ENV RAILS_ENV=production ENV RAILS_ENV=production

+ 2
- 4
spec/services/reblog_service_spec.rb View File

@ -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, 'http://hub.example.com')
stub_request(:post, Rails.configuration.x.hub_url)
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
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

Loading…
Cancel
Save