Sha256: 57b68fb94916ee72dc80e0bb4f975746fd1e9347f032c543f71e326b53debc68
Contents?: true
Size: 336 Bytes
Versions: 5
Compression:
Stored size: 336 Bytes
Contents
module Imagery module Test def self.included(base) Imagery::Model.send :include, Imagery::Faking Imagery::Model.mode = :fake end protected def imagery if ENV["REAL_IMAGERY"] Imagery::Model.real { yield true } else Imagery::Model.faked { yield false } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
imagery-0.0.6 | lib/imagery/test.rb |
imagery-0.0.5 | lib/imagery/test.rb |
imagery-0.0.4 | lib/imagery/test.rb |
imagery-0.0.3 | lib/imagery/test.rb |
imagery-0.0.2 | lib/imagery/test.rb |