forked from lukebayes/project-sprouts
/
gem_wrap_test.rb
44 lines (35 loc) · 1.16 KB
/
gem_wrap_test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require File.dirname(__FILE__) + '/test_helper'
class GemWrapTest < Test::Unit::TestCase
include SproutTestCase
def setup
remove_file(File.join(fixtures, 'gem_wrap', 'pkg'))
fixture = File.join(fixtures, 'gem_wrap')
@start = Dir.pwd
Dir.chdir(fixture)
@gem = File.join('pkg', 'sprout-asunit3-library-3.2.0.gem')
@template_extension = 'template'
@gem_template = File.join('pkg', 'sprout-mxml-template-0.1.0.gem')
end
def teardown
super
Dir.chdir(@start)
# remove_file(File.join(fixtures, 'gem_wrap', 'pkg'))
end
def test_wrap_library
gem_wrap :asunit3 do |t|
t.version = '3.2.0'
t.summary = "AsUnit3 is and ActionScript unit test framework for AIR, Flex 2/3 and ActionScript 3 projects"
t.author = "Luke Bayes and Ali Mills"
t.email = "projectsprouts@googlegroups.com"
t.homepage = "http://www.asunit.org"
t.sprout_spec =<<EOF
- !ruby/object:Sprout::RemoteFileTarget
platform: universal
url: http://projectsprouts.googlecode.com/files/asunit3-1.1.zip
source_path: ''
EOF
end
run_task :asunit3
assert_file(@gem)
end
end