Sha256: dc60092bd0f28eea35b4b422bc8b4579a7c3b53203ab5e183468daf6525aa806
Contents?: true
Size: 900 Bytes
Versions: 1
Compression:
Stored size: 900 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::OrgShow do it 'should list all users' do args = %w(my-test-org) + DEFAULTS VCR.use_cassette('org-show') do # rubocop:disable LineLength expect { Ogre::OrgShow.start(args) }.to output(/(06ea2683f8cd6e177771f32482b72ea3)|(my-test-org)|(test org)|(@pivotal)|(@ats-build)|(berks-api)/).to_stdout # rubocop:enable LineLength end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ogre-0.1.5 | spec/ogre/org-show_spec.rb |