Sha256: 86c371a8c96350cfd4e8c4469d29a9b8b65c09cb15afde853ee3d6f3382e8c32

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 Bytes

Contents

require 'minitest/autorun'
require 'nuvado'
require 'mocha/setup'
require 'webmock/minitest'

class MiniTest::Unit::TestCase

  private
  def stub_token_store(token = nil)
    Nuvado::Backend::TokenStore.stubs(:read_token).returns token
    Nuvado::Backend::TokenStore.stubs(:write_token)
  end

  def stub_stdio
    @input = StringIO.new
    @output = StringIO.new
    @terminal = HighLine.new @input, @output
    HighLine.stubs(:new).returns @terminal
  end
end

silence_warnings do
  Nuvado::KEY_FOLDER = 'ssh'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nuvado-1.0.0.rc3 test/test_helper.rb
nuvado-1.0.0.rc2 test/test_helper.rb
nuvado-1.0.0.rc1 test/test_helper.rb