Sha256: a7b5466dec1c76e18a09db4125e9386cde8a845224e121fb1d3d53eea39dba9f

Contents?: true

Size: 543 Bytes

Versions: 34

Compression:

Stored size: 543 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
      @command.name.should eq "version"
    end
  end

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

end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
ppl-3.0.1 spec/ppl/command/version_spec.rb
ppl-3.0.0 spec/ppl/command/version_spec.rb
ppl-2.4.1 spec/ppl/command/version_spec.rb
ppl-2.4.0 spec/ppl/command/version_spec.rb
ppl-2.3.3 spec/ppl/command/version_spec.rb
ppl-2.3.2 spec/ppl/command/version_spec.rb
ppl-2.3.1 spec/ppl/command/version_spec.rb
ppl-2.3.0 spec/ppl/command/version_spec.rb
ppl-2.2.0 spec/ppl/command/version_spec.rb
ppl-2.1.0 spec/ppl/command/version_spec.rb
ppl-2.0.0 spec/ppl/command/version_spec.rb
ppl-1.25.0 spec/ppl/command/version_spec.rb
ppl-1.24.0 spec/ppl/command/version_spec.rb
ppl-1.23.0 spec/ppl/command/version_spec.rb
ppl-1.22.2 spec/ppl/command/version_spec.rb
ppl-1.22.1 spec/ppl/command/version_spec.rb
ppl-1.22.0 spec/ppl/command/version_spec.rb
ppl-1.21.0 spec/ppl/command/version_spec.rb
ppl-1.20.0 spec/ppl/command/version_spec.rb
ppl-1.19.0 spec/ppl/command/version_spec.rb