Sha256: fbc2d2099b9e60d30b1263b0d4d3e22043bf6b5849d4d37c7247fd9f1bb66bca

Contents?: true

Size: 382 Bytes

Versions: 57

Compression:

Stored size: 382 Bytes

Contents

require 'spec_helper'

describe Aptible::CLI::Helpers::App::OptionsHandleStrategy do
  it 'is usable when app is set' do
    s = described_class.new(app: 'foo')
    expect(s.usable?).to be_truthy
  end

  it 'passes options through' do
    s = described_class.new(app: 'foo', environment: 'bar')
    expect(s.app_handle).to eq('foo')
    expect(s.env_handle).to eq('bar')
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
aptible-cli-0.24.2 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.24.1 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.24.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.23.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.22.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.21.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.20.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.9 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.7 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.6 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.4 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.3 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.2 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.1 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.19.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.18.3 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.18.2 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.18.1 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.18.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.17.2 spec/aptible/cli/helpers/options_handle_strategy_spec.rb