Sha256: 3095d0e8d65ffaf56fb51d962085a6fab0114ad9cde30eb68a2c92ea936e32eb

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

describe CLIForge, ".guess_bin_name" do

  it "should return the basename of $0" do
    old_name = $0

    begin
      $0 = "/foo/bar/baz-biff"
      expect(described_class.send(:guess_bin_name)).to eq("baz-biff")

    ensure
      $0 = old_name
    end
  end

  it "should freak out if we don't have a reasonable $0"

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cli-forge-0.1.0 spec/unit/cli_forge/class_methods/guess_bin_name_spec.rb