diff --git a/Library/Homebrew/test/cask/cmd/list_spec.rb b/Library/Homebrew/test/cask/cmd/list_spec.rb index 77b6e7af89..b09c8ae9ae 100644 --- a/Library/Homebrew/test/cask/cmd/list_spec.rb +++ b/Library/Homebrew/test/cask/cmd/list_spec.rb @@ -246,7 +246,7 @@ describe Cask::Cmd::List, :cask do ] EOS } - let(:original_macos_version) { MacOS.full_version.to_s } + let!(:original_macos_version) { MacOS.full_version.to_s } before do # Use a more limited symbols list to shorten the variations hash