Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Change ENV['S3_TEST_BUCKET'] to ENV['S3_BUCKET']
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Dec 12, 2011
1 parent 75f413d commit 88a8af9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/storage/s3_live_test.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
require './test/helper'
require 'aws'

unless ENV["S3_TEST_BUCKET"].blank?
unless ENV["S3_BUCKET"].blank?
class S3LiveTest < Test::Unit::TestCase

context "Generating an expiring url on a nonexistant attachment" do
setup do
rebuild_model :styles => { :thumb => "100x100", :square => "32x32#" },
:storage => :s3,
:bucket => ENV["S3_TEST_BUCKET"],
:bucket => ENV["S3_BUCKET"],
:path => ":class/:attachment/:id/:style.:extension",
:s3_credentials => File.new(File.join(File.dirname(__FILE__), "..", "fixtures", "s3.yml"))

Expand All @@ -23,7 +23,7 @@ class S3LiveTest < Test::Unit::TestCase
setup do
rebuild_model :styles => { :thumb => "100x100", :square => "32x32#" },
:storage => :s3,
:bucket => ENV["S3_TEST_BUCKET"],
:bucket => ENV["S3_BUCKET"],
:path => ":class/:attachment/:id/:style.:extension",
:s3_credentials => File.new(File.join(File.dirname(__FILE__), "..", "fixtures", "s3.yml"))

Expand Down Expand Up @@ -71,7 +71,7 @@ class S3LiveTest < Test::Unit::TestCase
setup do
rebuild_model :styles => { :thumb => "100x100", :square => "32x32#" },
:storage => :s3,
:bucket => ENV["S3_TEST_BUCKET"],
:bucket => ENV["S3_BUCKET"],
:s3_credentials => File.new(File.join(File.dirname(__FILE__), "..", "fixtures", "s3.yml"))

Dummy.delete_all
Expand Down Expand Up @@ -105,7 +105,7 @@ class S3LiveTest < Test::Unit::TestCase
setup do
rebuild_model :styles => { :thumb => "100x100", :square => "32x32#" },
:storage => :s3,
:bucket => ENV["S3_TEST_BUCKET"],
:bucket => ENV["S3_BUCKET"],
:s3_credentials => File.new(File.join(File.dirname(__FILE__), "..", "fixtures", "s3.yml"))

Dummy.delete_all
Expand Down

0 comments on commit 88a8af9

Please sign in to comment.