Sha256: 883b4c44751aaba2d6ab513690c159e4d5b62a8c836ae1ad0e3f637664d9f9b8

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

require 'rest_client'

module SpecHelpers
  def test_ui
    @test_ui ||= EY::CloudClient::Test::UI.new
  end

  def cloud_client(token = 'asdf', ui = test_ui)
    @cloud_client ||= EY::CloudClient.new(token, ui)
  end

  def scenario_cloud_client(scenario)
    @scenario = EY::CloudClient::Test::Scenario[scenario]
    @scenario.cloud_client
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
engineyard-cloud-client-1.0.3 spec/support/helpers.rb
engineyard-cloud-client-1.0.2 spec/support/helpers.rb
engineyard-cloud-client-1.0.1 spec/support/helpers.rb
engineyard-cloud-client-1.0.0 spec/support/helpers.rb
engineyard-cloud-client-0.1.4 spec/support/helpers.rb
engineyard-cloud-client-0.1.2 spec/support/helpers.rb