Sha256: 8d356e04f15ff1bae6205a942559613f09ab3579d8e6c6a65c25364bbf4d80f6
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
$:.unshift(File.expand_path("../lib", File.dirname(__FILE__))) require "cutest" require "imagery" require "imagery/s3" def fixture(filename) File.expand_path("fixtures/#{filename}", File.dirname(__FILE__)) end def resolution(file) `gm identify #{file}`[/(\d+x\d+)/, 1] end prepare do FileUtils.rm_rf(File.expand_path("../public", File.dirname(__FILE__))) Imagery::S3::Gateway.commands.clear end class Imagery module S3 module Gateway def self.execute(command, *args) commands << [command, *args.select { |a| a.respond_to?(:to_str) }] end def self.commands @commands ||= [] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
imagery-1.0.1 | tests/helper.rb |