From b0dc2da97be49968350dfbe39858ca9e1ef06e29 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 9 Feb 2017 04:00:42 +0100 Subject: Convert uninstall_preflight test to spec. --- .../Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb | 12 ++++++++++++ .../Homebrew/cask/test/cask/dsl/uninstall_preflight_test.rb | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb delete mode 100644 Library/Homebrew/cask/test/cask/dsl/uninstall_preflight_test.rb diff --git a/Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb b/Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb new file mode 100644 index 000000000..a4930e99e --- /dev/null +++ b/Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb @@ -0,0 +1,12 @@ +require "spec_helper" + +describe Hbc::DSL::UninstallPreflight do + let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") } + let(:dsl) { Hbc::DSL::UninstallPreflight.new(cask, Hbc::FakeSystemCommand) } + + it_behaves_like Hbc::DSL::Base + + it_behaves_like Hbc::Staged do + let(:staged) { dsl } + end +end diff --git a/Library/Homebrew/cask/test/cask/dsl/uninstall_preflight_test.rb b/Library/Homebrew/cask/test/cask/dsl/uninstall_preflight_test.rb deleted file mode 100644 index f964b0098..000000000 --- a/Library/Homebrew/cask/test/cask/dsl/uninstall_preflight_test.rb +++ /dev/null @@ -1,12 +0,0 @@ -require "test_helper" - -describe Hbc::DSL::UninstallPreflight do - let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") } - let(:dsl) { Hbc::DSL::UninstallPreflight.new(cask, Hbc::FakeSystemCommand) } - - it_behaves_like Hbc::DSL::Base - - it_behaves_like Hbc::Staged do - let(:staged) { dsl } - end -end -- cgit v1.2.3