Sha256: 32acff20683b436a5b67b460c13325964a75f9dacab80176a938a05d83c84c52
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 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::UserList do it 'should list all users' do args = %w(--run_as pivotal) + DEFAULTS response = "ats-build\nberks-api\n" VCR.use_cassette('user-list') do expect { Ogre::UserList.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/user-list_spec.rb |