Sha256: 17b4ad1c671877885b48df2402d4d44ab3113455e52fc1355162758ff888b3e2

Contents?: true

Size: 367 Bytes

Versions: 17

Compression:

Stored size: 367 Bytes

Contents

require "spec_helper"
require "license_acceptance/cli_flags/thor"
require "thor"

class TestThorKlass < Thor
  include LicenseAcceptance::CLIFlags::Thor
end

RSpec.describe LicenseAcceptance::CLIFlags::Thor do
  let(:klass) { TestThorKlass.new }
  it "adds the correct command line flag" do
    expect(klass.class.class_options.keys).to eq([:chef_license])
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
license-acceptance-1.0.13 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.12 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.11 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.8 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.7 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.6 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.5 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.3 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.2 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-1.0.0 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-0.2.16 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-0.2.15 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-0.2.13 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-0.2.10 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-0.2.8 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-0.2.6 spec/license_acceptance/cli_flags/thor_spec.rb
license-acceptance-0.2.1 spec/license_acceptance/cli_flags/thor_spec.rb