Skip to content

Commit

Permalink
Update .env.sample and specs to use AWS_REGION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
pranas committed Oct 9, 2015
1 parent 3c88f7d commit 9de242a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.sample
@@ -1,4 +1,4 @@
S3_BUCKET_NAME=BUCKET_NAME
S3_ACCESS_KEY=YOUR_KEY
S3_SECRET_ACCESS_KEY=YOUR_KEY
S3_REGION=BUCKET_REGION
AWS_REGION=BUCKET_REGION
3 changes: 2 additions & 1 deletion spec/features/storing_files_spec.rb
Expand Up @@ -57,7 +57,8 @@
instance.store!(image)
instance.retrieve_from_store!('image.png')

expect(instance.url).to eq("https://#{ENV['S3_BUCKET_NAME']}.s3.amazonaws.com/#{instance.path}")
expected_url = "https://#{ENV['S3_BUCKET_NAME']}.s3-#{ENV['AWS_REGION']}.amazonaws.com/#{instance.path}"
expect(instance.url).to eq(expected_url)

image.close
instance.file.delete
Expand Down

0 comments on commit 9de242a

Please sign in to comment.