spec/packer/provisioner_spec.rb in packer-config-0.0.4 vs spec/packer/provisioner_spec.rb in packer-config-1.0.0

- old
+ new

@@ -1,19 +1,6 @@ # Encoding: utf-8 -# Copyright 2014 Ian Chesal -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. require 'spec_helper' RSpec.describe Packer::Provisioner do PROVISIONER_TYPE = 'shell' @@ -46,11 +33,11 @@ expect(provisioner.data['only']).to eq(%w[thing1 thing2]) end end describe '#except' do - it 'adds an execpt exception' do + it 'adds an except exception' do provisioner.except('thing3') expect(provisioner.data['except']).to eq(%w[thing3]) provisioner.except('thing4') expect(provisioner.data['except']).to eq(%w[thing3 thing4]) end @@ -73,6 +60,6 @@ it 'raises a TypeError when the overrides are not a hash' do expect { provisioner.override('build', 10) }.to raise_error end end -end \ No newline at end of file +end