From efd950ae706cfbb55dffebd5d0c85e30acfd7a45 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 4 Jul 2017 16:44:50 +0200 Subject: Use lazy-loaded factory method for site configuration --- test/site/s3_site_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/site/s3_site_test.rb (limited to 'test/site/s3_site_test.rb') diff --git a/test/site/s3_site_test.rb b/test/site/s3_site_test.rb new file mode 100644 index 0000000000..7629b78ad5 --- /dev/null +++ b/test/site/s3_site_test.rb @@ -0,0 +1,11 @@ +require "site/shared_site_tests" + +if SITE_CONFIGURATIONS[:s3] + class ActiveFile::Site::S3SiteTest < ActiveSupport::TestCase + SITE = ActiveFile::Site.configure(:S3, SITE_CONFIGURATIONS[:s3]) + + include ActiveFile::Site::SharedSiteTests + end +else + puts "Skipping S3 Site tests because no S3 configuration was supplied" +end -- cgit v1.2.3