spec/speckle/cli/environment_spec.rb in speckle-0.1.10 vs spec/speckle/cli/environment_spec.rb in speckle-0.1.11
- old
+ new
@@ -259,14 +259,20 @@
it 'does not have tag by default' do
expect('').to_not have_default_option('tag')
end
- it 'takes tag fram --tag' do
+ it 'takes tag from --tag' do
expect(['--tag', 'focus']).to yield_option_value('tag', 'focus')
end
+ it 'does not have duplicate inputs', :foo => true do
+ env = Environment.new
+ opts = env.load(['spec', 'spec'])
+ expect(opts.inputs.length).to eq(1)
+ end
+
end
describe 'Complete CLI options' do
def env(*args)
env = Environment.new
@@ -298,7 +304,8 @@
expect(opts.reporter).to eq('tap')
expect(opts.libs).to eq('stuff')
end
end
+
end
end