Sha256: e5350fad6f06542c9e846676d132f567efa096f07150421e7743ba9667bee3b0
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
require_relative '../spec_helper.rb' require 'ogre' VCR.configure do |config| config.cassette_library_dir = 'spec/fixtures/vcr_cassettes' config.hook_into :webmock # remove sensitive authentication information from the recording config.before_record do |interaction| headers = interaction.request.headers headers.keys .select { |k| k =~ /^X-Ops-(Authorization-|Content-Hash)/ } .each { |header| headers[header] = Array("{{#{header}}}") } headers['X-Ops-Userid'] = 'pivotal' end end describe Ogre::OrgList do it 'should list all organizations' do args = %w(--run_as pivotal) + DEFAULTS response = "a3\naa\nacl\nacm\nadp\naev\nag\nan\naohflnx\naonet" VCR.use_cassette('org-list') do expect { Ogre::OrgList.start(args) }.to output(/#{response}/).to_stdout end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ogre-0.1.5 | spec/ogre/org-list_spec.rb |