Sha256: bac692e939b95ea97766d10fc5da74d8476bbf1ad4745544c3d673152d773046

Contents?: true

Size: 816 Bytes

Versions: 2

Compression:

Stored size: 816 Bytes

Contents

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

module Pod
  describe Command::Lib::Schoutedenapus do
    describe 'CLAide' do
      it 'registers it self' do
        Command.parse(%w( lib schoutedenapus )).should.be.instance_of Command::Lib::Schoutedenapus
      end

      it 'parses a given spec' do
        cmd = Command.parse(%w( lib schoutedenapus spec/fixtures/Stencil.podspec.json ))
        cmd.validate!

        cmd.instance_variable_get('@spec').name.should == 'Stencil'
      end

      it 'generates a Package.swift file' do
        cmd = Command.parse(%w( lib schoutedenapus spec/fixtures/Stencil.podspec.json ))
        cmd.run

        FileUtils.compare_file('spec/fixtures/Package.swift', 'Package.swift').should == true
        FileUtils.rm_f('Package.swift')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-schoutedenapus-0.0.2 spec/command/schoutedenapus_spec.rb
cocoapods-schoutedenapus-0.0.1 spec/command/schoutedenapus_spec.rb