diff --git a/config/environments/test.rb b/config/environments/test.rb index a459967..65473dd 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -52,10 +52,9 @@ Rails.application.configure do config.active_job.queue_adapter = :test - if ENV["S3_ENABLED"] + if ENV["S3_ENABLED"] && ENV["S3_ENABLED"].to_s != "false" config.active_storage.service = :s3 else - # Store attachments on the local disk (in ./tmp) - config.active_storage.service = :test + config.active_storage.service = :local end end diff --git a/spec/requests/webfinger_spec.rb b/spec/requests/webfinger_spec.rb index 1dcdfa3..27cd361 100644 --- a/spec/requests/webfinger_spec.rb +++ b/spec/requests/webfinger_spec.rb @@ -15,7 +15,7 @@ RSpec.describe "WebFinger", type: :request do res = JSON.parse(response.body) rs_link = res["links"].find {|l| l["rel"] == "http://tools.ietf.org/id/draft-dejong-remotestorage"} - expect(rs_link["href"]).to eql("https://storage.kosmos.org/tony") + expect(rs_link["href"]).to eql("#{Setting.rs_storage_url}/tony") oauth_url = rs_link["properties"]["http://tools.ietf.org/html/rfc6749#section-4.2"] expect(oauth_url).to eql("http://www.example.com/rs/oauth/tony")