require 'spec_helper'

describe "version command" do
  before :each do
    @version = Nomad::CLI::Commands.find('version')
  end

  it "should display the version" do
    mesg = "nomad 1.0.0-mock"
    Nomad::CLI.instance.should_receive(:version).and_return(mesg)
    @version.should_receive(:puts).with(mesg)
    @version.execute([])
  end
end
