Sha256: 0c154804f272d7bfbf62f96fa70557852a344be4696b619ff6e1bd4d64503585
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require 'active_support/test_case' class ActiveSupport::TestCase def fetch_inventory get "/cogy/inventory" YAML.load(response.body) end def with_config(opts={}) old = {} opts.each do |k, v| old[k] = Cogy.send(k) Cogy.send("#{k}=", v) end yield fetch_inventory old.each do |k, v| Cogy.send("#{k}=", v) end end def without_commands old = Cogy.commands Cogy.commands = {} yield Cogy.commands = old end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cogy-0.1.0 | test/support/helpers.rb |