Sha256: ad7e2fb4c1f448b70e2ca1bc6637b82f39dc4a5514be9981f3e92f497e23a77d

Contents?: true

Size: 580 Bytes

Versions: 8

Compression:

Stored size: 580 Bytes

Contents

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

describe 'XCRes::ProjectCommand' do

  def subject
    XCRes::ProjectCommand
  end

  before do
    @cmd = subject.new('xcres', [], {})
    @cmd.stubs(:project).returns(xcodeproj)
  end

  describe '#application_targets' do
    it 'should return the expected application target' do
      @cmd.application_targets.count.should.eql? 1
      target = @cmd.application_targets.first
      target.should.be.an.instance_of?(Xcodeproj::Project::Object::PBXNativeTarget)
      target.name.should.eql?('Example')
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcres-0.6.1 spec/unit/command/project_command_spec.rb
xcres-0.6.0 spec/unit/command/project_command_spec.rb
xcres-0.5.0 spec/unit/command/project_command_spec.rb
xcres-0.4.4 spec/unit/command/project_command_spec.rb
xcres-0.4.3 spec/unit/command/project_command_spec.rb
xcres-0.4.2 spec/unit/command/project_command_spec.rb
xcres-0.4.1 spec/unit/command/project_command_spec.rb
xcres-0.4.0 spec/unit/command/project_command_spec.rb