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

Version Path
engineyard-1.3.15 spec/ey/ey_spec.rb
engineyard-1.3.14 spec/ey/ey_spec.rb
engineyard-1.3.13 spec/ey/ey_spec.rb
engineyard-1.3.12 spec/ey/ey_spec.rb
engineyard-1.3.11 spec/ey/ey_spec.rb
engineyard-1.3.10 spec/ey/ey_spec.rb
engineyard-1.3.7 spec/ey/ey_spec.rb
engineyard-1.3.4 spec/ey/ey_spec.rb
engineyard-1.3.3 spec/ey/ey_spec.rb
engineyard-1.3.2 spec/ey/ey_spec.rb
engineyard-1.3.1 spec/ey/ey_spec.rb
engineyard-1.3.0 spec/ey/ey_spec.rb
engineyard-1.2.4 spec/ey/ey_spec.rb
engineyard-1.2.3 spec/ey/ey_spec.rb
engineyard-1.2.2 spec/ey/ey_spec.rb
engineyard-1.2.1 spec/ey/ey_spec.rb
engineyard-1.2.0 spec/ey/ey_spec.rb
engineyard-1.1.3 spec/ey/ey_spec.rb
engineyard-1.1.2 spec/ey/ey_spec.rb
engineyard-1.1.1 spec/ey/ey_spec.rb