Sha256: 0a272b3f9cfa7dbaee9154f7b43076e62aabecc508e00d26789022efef93624d

Contents?: true

Size: 867 Bytes

Versions: 9

Compression:

Stored size: 867 Bytes

Contents

require 'rspec'
require 'xcoder'

describe Xcode::Configuration do 
  before do
    @config = Xcode.project('TestProject').target('TestProject').config('Debug')
  end
  
  it "should parse the name" do 
    @config.name.should=="Debug"
  end
  
  it "should be able to build" do
    builder = @config.builder
    builder.clean
    builder.build
    File.exists?(builder.app_path).should==true
    File.exists?(builder.dsym_path).should==true
  end
  
  it "should be able to package" do
    builder = @config.builder
    builder.clean
    builder.build
    builder.package
    File.exists?(builder.dsym_zip_path).should==true
    File.exists?(builder.ipa_path).should==true
  end
  
  # it "should run tests and fail" do
  #   builder = Xcode.project('TestProject').target('TestProjectTests').config('Debug').builder
  #   builder.clean
  #   builder.test
  # end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xcoder-0.0.21 spec/configuration_spec.rb
xcoder-0.0.20 spec/configuration_spec.rb
xcoder-0.0.19 spec/configuration_spec.rb
xcoder-0.0.18 spec/configuration_spec.rb
xcoder-0.0.17 spec/configuration_spec.rb
xcoder-0.0.16 spec/configuration_spec.rb
xcoder-0.0.15 spec/configuration_spec.rb
xcoder-0.0.14 spec/configuration_spec.rb
xcoder-0.0.12 spec/configuration_spec.rb