Sha256: d98caa7fe0998ae0830ffae3e126c748dc7fbd3aeb3bc2f42404f9a9eb3d0290
Contents?: true
Size: 652 Bytes
Versions: 1
Compression:
Stored size: 652 Bytes
Contents
describe Glb::CLI do before(:all) do @args = "--from Tung" end describe "glb" do it "hello" do out = execute("exe/glb hello world #{@args}") expect(out).to include("from: Tung\nHello world") end commands = { "hell" => "hello", "hello" => "name", "hello -" => "--from", "hello name" => "--from", "hello name --" => "--from", } commands.each do |command, expected_word| it "completion #{command}" do out = execute("exe/glb completion #{command}") expect(out).to include(expected_word) # only checking for one word for simplicity end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glb-0.1.1 | spec/cli_spec.rb |