Class: BuildOutputTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- BuildOutputTest
- Defined in:
- lib/beta_builder/build_output_parser.rb
Instance Method Summary collapse
- #test_parses_output_with_quoted_build_path ⇒ Object
- #test_parses_output_with_unquoted_build_path ⇒ Object
Instance Method Details
#test_parses_output_with_quoted_build_path ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/beta_builder/build_output_parser.rb', line 39 def test_parses_output_with_quoted_build_path bop = BetaBuilder::BuildOutputParser.new(<<eos) Validate \"/Users/john smith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app\" cd /Users/user/app/ios setenv PATH \"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin\" setenv PRODUCT_TYPE com.apple.product-type.application /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/user/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app eos assert_equal "/Users/john smith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/", bop.build_output_dir end |
#test_parses_output_with_unquoted_build_path ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/beta_builder/build_output_parser.rb', line 28 def test_parses_output_with_unquoted_build_path bop = BetaBuilder::BuildOutputParser.new(<<eos) Validate /Users/johnsmith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app cd /Users/user/app/ios setenv PATH \"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin\" setenv PRODUCT_TYPE com.apple.product-type.application /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/user/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app eos assert_equal "/Users/johnsmith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/", bop.build_output_dir end |