Sha256: c63cca5db396876dc22c2e490dcdeeb6669e11108f8e56a059817352e991bb79
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
require "pry" require "refile/fog" require "refile/spec_helper" Fog.mock! RSpec.configure do |config| config.before do @connection = ::Fog::Storage.new(provider: "AWS", aws_access_key_id: "zyx", aws_secret_access_key: "abc421") @connection.directories.create(key: "refile-fog-test") end config.after do @connection.directories.get("refile-fog-test").files.each(&:destroy) @connection.directories.get("refile-fog-test").destroy end end RSpec.describe Refile::Fog::Backend do let(:backend) { Refile::Fog::Backend.new(max_size: 100, prefix: "cache", connection: @connection, directory: "refile-fog-test") } it_behaves_like :backend end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refile-fog-0.2.0 | spec/refile/fog_spec.rb |
refile-fog-0.1.1 | spec/refile/fog_spec.rb |
refile-fog-0.1.0 | spec/refile/fog_spec.rb |