Sha256: 5a49781e1f36c536dba4df78fd185fcf801c78e5c4d90b273f97acd5781d893d
Contents?: true
Size: 601 Bytes
Versions: 21
Compression:
Stored size: 601 Bytes
Contents
require 'spec_helper' describe "ey" do context "run without arguments" do it "prints usage information" do ey.should include("Usage:") end end context "run with an argument that is not a command" do it "tells the user that is not a command" do ey "foobarbaz", :expect_failure => true @err.should include("Could not find command") end end context "run a command and a bad flag" do it "tells the user that is not a valid flag" do ey "help --expect-failure", :expect_failure => true @err.should include("Unknown switches") end end end
Version data entries
21 entries across 21 versions & 1 rubygems