summaryrefslogtreecommitdiff
path: root/spec/unit/mixin/windows_architecture_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/mixin/windows_architecture_helper_spec.rb')
-rw-r--r--spec/unit/mixin/windows_architecture_helper_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/mixin/windows_architecture_helper_spec.rb b/spec/unit/mixin/windows_architecture_helper_spec.rb
index 311d9ccea3..b2d64f44b2 100644
--- a/spec/unit/mixin/windows_architecture_helper_spec.rb
+++ b/spec/unit/mixin/windows_architecture_helper_spec.rb
@@ -50,10 +50,10 @@ describe Chef::Mixin::WindowsArchitectureHelper do
it "raises an error if an invalid architecture is passed to assert_valid_windows_architecture!" do
@invalid_architectures.each do |architecture|
- begin
- expect(assert_valid_windows_architecture!(architecture)).to raise_error Chef::Exceptions::Win32ArchitectureIncorrect
- rescue Chef::Exceptions::Win32ArchitectureIncorrect
- end
+
+ expect(assert_valid_windows_architecture!(architecture)).to raise_error Chef::Exceptions::Win32ArchitectureIncorrect
+ rescue Chef::Exceptions::Win32ArchitectureIncorrect
+
end
end