Sha256: 7030ca31b249f44572d5ba7d8174a9ee02353783f89b943b98195a1d56354ae3
Contents?: true
Size: 605 Bytes
Versions: 78
Compression:
Stored size: 605 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 %w[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 %w[help --expect-failure], :expect_failure => true @err.should include("Unknown switches") end end end
Version data entries
78 entries across 78 versions & 1 rubygems