Sha256: 3b585ef8c384f2717be2a04c1c2ec0017749ea52f88a167b7502f03eecf38759

Contents?: true

Size: 911 Bytes

Versions: 1

Compression:

Stored size: 911 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

module Pod
  describe Command::Spec::Appledoc do
    describe "CLAide" do
      it "registers it self" do
        Command.parse(%w{ spec appledoc }).should.be.instance_of Command::Spec::Appledoc
      end

      it "presents the help if no spec is provided" do
        command = Command.parse(%w{ spec appledoc })
        should.raise CLAide::Help do
          command.validate!
        end.message.should.match /required/
      end

      it "errors if it cannot find a spec" do
        SourcesManager.stubs(:search).returns(nil)
        command = Command.parse(%w{ spec appledoc KFData })
        should.raise Informative do
          command.run
        end.message.should.match /Unable to find a specification/
      end

      it "runs" do
        command = Command.parse(%w{ spec appledoc KFData })
        command.run
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cocoapods-appledoc-0.1.0 spec/command/appledoc_spec.rb