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.17.1 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.17.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.9 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.8 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.7 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.6 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.5 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.4 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.3 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.2 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.1 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.16.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.15.2 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.15.1 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.15.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.14.1 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.14.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.13.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.12.0 spec/aptible/cli/helpers/options_handle_strategy_spec.rb
aptible-cli-0.11.2 spec/aptible/cli/helpers/options_handle_strategy_spec.rb