spec/speckle/cli/environment_spec.rb in speckle-0.1.24 vs spec/speckle/cli/environment_spec.rb in speckle-0.1.25
- old
+ new
@@ -280,9 +280,21 @@
env = Environment.new
opts = env.load(['spec', 'spec'])
expect(opts.inputs.length).to eq(1)
end
+ it 'does not have profile option by default' do
+ expect([]).to_not have_default_option('profile')
+ end
+
+ it 'has profile option when specified' do
+ expect(['-p']).to yield_option_value('profile', true)
+ end
+
+ it 'has profile option with long switch' do
+ expect(['--profile']).to yield_option_value('profile', true)
+ end
+
end
describe 'Complete CLI options' do
def env(*args)
env = Environment.new