Sha256: a1b16c347d572026d0e6eba63db37d140744cda28eef031632f526669088ff98

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

describe Ppl::Command::Version do

  before(:each) do
    @command = Ppl::Command::Version.new
    @input   = Ppl::Application::Input.new
    @output  = double(Ppl::Application::Output)
  end

  describe "#name" do
    it "should be 'version'" do
      expect(@command.name).to eq "version"
    end
  end

  describe "#execute" do
    it "should show the version number" do
      expect(@output).to receive(:line) do |line|
        expect(line).to include Ppl::Version
      end
      expect(@command.execute(@input, @output)).to eq true
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ppl-4.0.3 spec/ppl/command/version_spec.rb
ppl-4.0.2 spec/ppl/command/version_spec.rb