Sha256: fcf826e93f5d58775f08fdbc645c4a9754551c58c25ac44bf64f91a846e001ec
Contents?: true
Size: 1.37 KB
Versions: 14
Compression:
Stored size: 1.37 KB
Contents
require 'stringio' require 'test/unit' require 'test/plugins/test_helper.rb' require 'zerg_xcode' module Plugins; end class Plugins::LsTest < Test::Unit::TestCase include Plugins::TestHelper def setup @plugin = ZergXcode.plugin 'ls' end def test_list golden_list = [ ["./Classes/TestAppAppDelegate.h", "sourcecode.c.h"], ["./Classes/TestAppAppDelegate.m", "sourcecode.c.objc"], ["./Classes/TestAppViewController.h", "sourcecode.c.h"], ["./Classes/TestAppViewController.m", "sourcecode.c.objc"], ["./TestApp_Prefix.pch", "sourcecode.c.h"], ["./main.m", "sourcecode.c.objc"], ["./TestAppViewController.xib", "file.xib"], ["./MainWindow.xib", "file.xib"], ["./Info.plist", "text.plist.xml"], ["SDKROOT/System/Library/Frameworks/UIKit.framework", "wrapper.framework"], ["SDKROOT/System/Library/Frameworks/Foundation.framework", "wrapper.framework"], ["SDKROOT/System/Library/Frameworks/CoreGraphics.framework", "wrapper.framework"], ["BUILT_PRODUCTS_DIR/TestApp.app", nil]] file_list = @plugin.list_for 'testdata/project.pbxproj' assert_equal golden_list.sort, file_list.sort end def test_run output = capture_output { @plugin.run(['testdata']) } assert_equal "sourcecode.c.h ./Classes/TestAppAppDelegate.h", output[/^(.*?)$/] end end
Version data entries
14 entries across 14 versions & 2 rubygems