Convert Version test to spec.

This commit is contained in:
Markus Reiter 2017-02-08 13:41:40 +01:00
parent 3d03142040
commit 32565eb96e
2 changed files with 11 additions and 9 deletions

View 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

View File

@ -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