Sha256: 7bb5cc82e9180fda6bb3426e3e7ab46c5a215cc48e5acbf09e1050bf85ff9deb

Contents?: true

Size: 716 Bytes

Versions: 3

Compression:

Stored size: 716 Bytes

Contents

ENV['RACK_ENV'] = 'test'

require 'apigee_cli'
require 'rack/test'
require 'webmock'

include WebMock::API

WebMock.disable_net_connect!

RSpec.configure do |config|
  config.before(:each) do
    allow_any_instance_of(ApigeeCli::Configuration).to receive(:username).and_return('example_user')
    allow_any_instance_of(ApigeeCli::Configuration).to receive(:password).and_return('password')
    allow_any_instance_of(ApigeeCli::Configuration).to receive(:environment).and_return('test')
    allow_any_instance_of(ApigeeCli::Configuration).to receive(:org).and_return('example_org')
  end
end

class ShellRecorder
  def say(message, color=nil)
    printed << message
  end

  def printed
    @printed ||= []
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apigee_cli-0.0.3 spec/spec_helper.rb
apigee_cli-0.0.2 spec/spec_helper.rb
apigee_cli-0.0.1 spec/spec_helper.rb