mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 15:36:59 +00:00
Convert Version test to spec.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe "brew cask --version" do
|
||||
it "respects the --version argument" do
|
||||
expect {
|
||||
expect {
|
||||
Hbc::CLI::NullCommand.new("--version").run
|
||||
}.not_to output.to_stderr
|
||||
}.to output(Hbc.full_version).to_stdout
|
||||
end
|
||||
end
|
||||
@@ -1,9 +0,0 @@
|
||||
require "test_helper"
|
||||
|
||||
describe "brew cask --version" do
|
||||
it "respects the --version argument" do
|
||||
lambda {
|
||||
Hbc::CLI::NullCommand.new("--version").run
|
||||
}.must_output Hbc.full_version
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user