Convert Version test to spec.
This commit is contained in:
parent
3d03142040
commit
32565eb96e
11
Library/Homebrew/cask/spec/cask/cli/version_spec.rb
Normal file
11
Library/Homebrew/cask/spec/cask/cli/version_spec.rb
Normal file
@ -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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user