Sha256: 7fd7c87be09a54a1f3d718e4e1d4a7bb3876c5ddfb99976157b36d2f31c740af

Contents?: true

Size: 477 Bytes

Versions: 9

Compression:

Stored size: 477 Bytes

Contents

require "helper"

describe VimGolf do
  it "provides VimGolf errors" do
    VimGolf::Error.should be
  end

  it "sets up VimGolf.ui" do
    VimGolf.ui.should be_an(VimGolf::UI)
    capture_stdout do
      VimGolf::CLI.start(["help"])
    end
    VimGolf.ui.should be_an(VimGolf::CLI::UI)
  end

  it "provides a help prompt" do
    out = capture_stdout do
      VimGolf::CLI.start(["help"])
    end

    out.should include("setup")
    out.should include("launch")
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vimgolf-0.4.8 spec/cli_spec.rb
vimgolf-0.4.7 spec/cli_spec.rb
vimgolf-0.4.6 spec/cli_spec.rb
vimgolf-0.4.5 spec/cli_spec.rb
vimgolf-0.4.4 spec/cli_spec.rb
vimgolf-0.4.3 spec/cli_spec.rb
vimgolf-0.4.2 spec/cli_spec.rb
vimgolf-0.4.1 spec/cli_spec.rb
vimgolf-0.4.0 spec/cli_spec.rb