gator-as3 0.0.12.pre → 0.0.13.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
- gem "gator", "0.0.23.pre"
6
+ gem "gator", "0.0.25.pre"
7
7
 
8
8
  # Add dependencies to develop your gem here.
9
9
  # Include everything needed to run rake, tests, features, etc.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12.pre
1
+ 0.0.13.pre
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gator-as3"
8
- s.version = "0.0.12.pre"
8
+ s.version = "0.0.13.pre"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dominic Graefen"]
12
- s.date = "2011-10-14"
12
+ s.date = "2011-11-01"
13
13
  s.description = "gator-as3 - ActionScript3 & MXML generators for gator"
14
14
  s.email = "dominic.graefen@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -62,38 +62,25 @@ Gem::Specification.new do |s|
62
62
  "lib/gator/as3/templates/mxml/application.mxml.tt",
63
63
  "lib/gator/as3/templates/mxml/component.mxml.tt",
64
64
  "lib/gator/as3/templates/mxml/skin.mxml.tt",
65
- "lib/gator/mxml/generators.rb",
66
65
  "lib/gator/utils/as3_util.rb",
67
66
  "rake/jeweler.rb",
68
67
  "rake/jeweler_prerelease_tasks.rb",
69
68
  "rake/pre_release_gemspec.rb",
70
69
  "rake/pre_release_to_git.rb",
71
- "spec/as3/generators/collection_spec.rb",
72
- "spec/as3/generators/event_spec.rb",
73
- "spec/as3/generators/interface_spec.rb",
74
- "spec/as3/generators/klass_spec.rb",
75
- "spec/as3/generators/test/asunit3/klass_spec.rb",
76
- "spec/as3/generators/test/asunit3/runner_spec.rb",
77
- "spec/as3/generators/test/asunit3/suite_spec.rb",
78
- "spec/as3/generators/test/asunit4/klass_spec.rb",
79
- "spec/as3/generators/test/asunit4/runner_spec.rb",
80
- "spec/as3/generators/test/asunit4/suite_spec.rb",
81
- "spec/mxml/generators/application_spec.rb",
82
- "spec/mxml/generators/component_spec.rb",
83
- "spec/mxml/generators/skin_spec.rb",
70
+ "spec/as3/generators/as3/klass_spec.rb",
84
71
  "spec/spec_helper.rb"
85
72
  ]
86
73
  s.homepage = "http://github.com/devboy/gator-as3"
87
74
  s.licenses = ["MIT"]
88
75
  s.require_paths = ["lib"]
89
- s.rubygems_version = "1.8.10"
76
+ s.rubygems_version = "1.8.11"
90
77
  s.summary = "gator-as3 - ActionScript3 & MXML generators for gator"
91
78
 
92
79
  if s.respond_to? :specification_version then
93
80
  s.specification_version = 3
94
81
 
95
82
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
96
- s.add_runtime_dependency(%q<gator>, ["= 0.0.23.pre"])
83
+ s.add_runtime_dependency(%q<gator>, ["= 0.0.25.pre"])
97
84
  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
98
85
  s.add_development_dependency(%q<ci_reporter>, ["~> 1.6.5"])
99
86
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -101,7 +88,7 @@ Gem::Specification.new do |s|
101
88
  s.add_development_dependency(%q<simplecov>, [">= 0"])
102
89
  s.add_development_dependency(%q<simplecov-rcov>, [">= 0"])
103
90
  else
104
- s.add_dependency(%q<gator>, ["= 0.0.23.pre"])
91
+ s.add_dependency(%q<gator>, ["= 0.0.25.pre"])
105
92
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
106
93
  s.add_dependency(%q<ci_reporter>, ["~> 1.6.5"])
107
94
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -110,7 +97,7 @@ Gem::Specification.new do |s|
110
97
  s.add_dependency(%q<simplecov-rcov>, [">= 0"])
111
98
  end
112
99
  else
113
- s.add_dependency(%q<gator>, ["= 0.0.23.pre"])
100
+ s.add_dependency(%q<gator>, ["= 0.0.25.pre"])
114
101
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
115
102
  s.add_dependency(%q<ci_reporter>, ["~> 1.6.5"])
116
103
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -1,4 +1,3 @@
1
- require File.dirname(__FILE__) + '/generator'
2
1
  class Gator
3
2
  module AS3
4
3
  class ClassGenerator < KlassGenerator
@@ -0,0 +1,13 @@
1
+ require File.dirname(__FILE__) + '/../../../spec_helper'
2
+
3
+ describe "Gator::AS3::ClassGenerator" do
4
+
5
+ it "should have the correct command name" do
6
+ Gator::AS3::ClassGenerator.definition[:command].should == "klass"
7
+ end
8
+
9
+ it "should have the correct template path" do
10
+ Gator::AS3::ClassGenerator.new.template_file == "as3/klass.as.tt"
11
+ end
12
+
13
+ end
@@ -1,27 +1,24 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'rspec'
4
- require 'thor'
5
- require 'gator'
6
- require 'fileutils'
1
+ unless defined?(SpecHelpers)
7
2
 
3
+ require 'simplecov'
4
+ require 'simplecov-rcov'
8
5
 
9
- # Requires supporting files with custom matchers and macros, etc,
10
- # in ./support/ and its subdirectories.
11
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
6
+ SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
7
+ SimpleCov.root(File.dirname(__FILE__) + '/../')
8
+ SimpleCov.coverage_dir(File.join("test", "coverage"))
9
+ SimpleCov.start
12
10
 
13
- require 'simplecov'
14
- require 'simplecov-rcov'
11
+ RSpec.configure do |config|
12
+ end
15
13
 
16
- SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
17
- SimpleCov.root(File.dirname(__FILE__) + '/../')
18
- SimpleCov.coverage_dir(File.join("test", "coverage"))
19
- SimpleCov.start
14
+ SANDBOX_LOCATION = File.dirname(__FILE__) + "/sandbox/specs"
20
15
 
21
- RSpec.configure do |config|
22
- end
16
+ require 'gator'
17
+ Gator::Application.start ["generate","as3"]
18
+ require File.dirname(__FILE__) + '/../lib/gator/as3'
19
+ Gator::Sandbox.gator.as3.use :as3, :mxml, :asunit3, :asunit4, :flexunit4
23
20
 
24
- class GatorProcess
21
+ class GatorProcess
25
22
 
26
23
  def initialize(dir)
27
24
  @dir = dir
@@ -35,13 +32,11 @@ class GatorProcess
35
32
  def run_with_default_mock
36
33
  fork do
37
34
  require "gator"
38
- Gator::Util.stub!(:find_gator_project).and_return(@dir)
39
- Gator::Project.project=Gator::Project::ProjectBase.new
40
- Gator::Project.project.name = "gator-as3-testproject"
41
- Gator::Project.project.options[:authors] = ["devboy"]
35
+ require File.dirname(__FILE__) + '/../lib/gator/as3'
36
+ Gator::Application.start
42
37
  end
43
38
  end
44
39
 
45
40
  end
46
41
 
47
- SANDBOX_LOCATION = File.dirname(__FILE__) + "/sandbox/specs"
42
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gator-as3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12.pre
4
+ version: 0.0.13.pre
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-14 00:00:00.000000000Z
12
+ date: 2011-11-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gator
16
- requirement: &2156233380 !ruby/object:Gem::Requirement
16
+ requirement: &2162003700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.23.pre
21
+ version: 0.0.25.pre
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156233380
24
+ version_requirements: *2162003700
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2156232320 !ruby/object:Gem::Requirement
27
+ requirement: &2162011020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.3.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2156232320
35
+ version_requirements: *2162011020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ci_reporter
38
- requirement: &2156230720 !ruby/object:Gem::Requirement
38
+ requirement: &2162016720 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.5
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2156230720
46
+ version_requirements: *2162016720
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &2156220020 !ruby/object:Gem::Requirement
49
+ requirement: &2162021800 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2156220020
57
+ version_requirements: *2162021800
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &2156219200 !ruby/object:Gem::Requirement
60
+ requirement: &2162048800 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.6.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2156219200
68
+ version_requirements: *2162048800
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
- requirement: &2156217900 !ruby/object:Gem::Requirement
71
+ requirement: &2162125400 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2156217900
79
+ version_requirements: *2162125400
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov-rcov
82
- requirement: &2156216900 !ruby/object:Gem::Requirement
82
+ requirement: &2162133520 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2156216900
90
+ version_requirements: *2162133520
91
91
  description: gator-as3 - ActionScript3 & MXML generators for gator
92
92
  email: dominic.graefen@gmail.com
93
93
  executables: []
@@ -141,25 +141,12 @@ files:
141
141
  - lib/gator/as3/templates/mxml/application.mxml.tt
142
142
  - lib/gator/as3/templates/mxml/component.mxml.tt
143
143
  - lib/gator/as3/templates/mxml/skin.mxml.tt
144
- - lib/gator/mxml/generators.rb
145
144
  - lib/gator/utils/as3_util.rb
146
145
  - rake/jeweler.rb
147
146
  - rake/jeweler_prerelease_tasks.rb
148
147
  - rake/pre_release_gemspec.rb
149
148
  - rake/pre_release_to_git.rb
150
- - spec/as3/generators/collection_spec.rb
151
- - spec/as3/generators/event_spec.rb
152
- - spec/as3/generators/interface_spec.rb
153
- - spec/as3/generators/klass_spec.rb
154
- - spec/as3/generators/test/asunit3/klass_spec.rb
155
- - spec/as3/generators/test/asunit3/runner_spec.rb
156
- - spec/as3/generators/test/asunit3/suite_spec.rb
157
- - spec/as3/generators/test/asunit4/klass_spec.rb
158
- - spec/as3/generators/test/asunit4/runner_spec.rb
159
- - spec/as3/generators/test/asunit4/suite_spec.rb
160
- - spec/mxml/generators/application_spec.rb
161
- - spec/mxml/generators/component_spec.rb
162
- - spec/mxml/generators/skin_spec.rb
149
+ - spec/as3/generators/as3/klass_spec.rb
163
150
  - spec/spec_helper.rb
164
151
  homepage: http://github.com/devboy/gator-as3
165
152
  licenses:
@@ -176,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
163
  version: '0'
177
164
  segments:
178
165
  - 0
179
- hash: -1190461231997358203
166
+ hash: 2141010183287473158
180
167
  required_rubygems_version: !ruby/object:Gem::Requirement
181
168
  none: false
182
169
  requirements:
@@ -185,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
172
  version: 1.3.1
186
173
  requirements: []
187
174
  rubyforge_project:
188
- rubygems_version: 1.8.10
175
+ rubygems_version: 1.8.11
189
176
  signing_key:
190
177
  specification_version: 3
191
178
  summary: gator-as3 - ActionScript3 & MXML generators for gator
@@ -1,5 +0,0 @@
1
- require File.dirname(__FILE__) + '/../as3/utils/as3_util'
2
- require File.dirname(__FILE__) + '/generators/generator'
3
- require File.dirname(__FILE__) + '/generators/collection'
4
-
5
- Gator::GenerateCommand.register_subcommand Gator::MXML::GeneratorCollection
@@ -1,46 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Gator::AS3::GeneratorCollection do
4
-
5
- before(:each) do
6
- FileUtils.mkdir_p SANDBOX_LOCATION
7
- end
8
-
9
- after(:each) do
10
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
11
- end
12
-
13
- it "should have the correct definition" do
14
- gator = GatorProcess.new SANDBOX_LOCATION
15
- gator.should_receive(:fork) do |&block|
16
- block.call
17
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
18
- Gator::AS3::GeneratorCollection.definition[:command].should == "as3"
19
- end
20
- gator.run_with_default_mock
21
- end
22
-
23
- it "should be registered as a subcommand on Gator::GenerateCommand" do
24
- gator = GatorProcess.new SANDBOX_LOCATION
25
- gator.should_receive(:fork) do |&block|
26
- block.call
27
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
28
- Gator::GenerateCommand.get_subcommand("as3").should == Gator::AS3::GeneratorCollection
29
- end
30
- gator.run_with_default_mock
31
- end
32
-
33
- it "should have the correct generators registered" do
34
- gator = GatorProcess.new SANDBOX_LOCATION
35
- gator.should_receive(:fork) do |&block|
36
- block.call
37
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
38
- Gator::AS3::GeneratorCollection.get_subcommand("klass").should == Gator::AS3::ClassGenerator
39
- Gator::AS3::GeneratorCollection.get_subcommand("event").should == Gator::AS3::EventGenerator
40
- Gator::AS3::GeneratorCollection.get_subcommand("interface").should == Gator::AS3::InterfaceGenerator
41
- end
42
- gator.run_with_default_mock
43
- end
44
-
45
-
46
- end
@@ -1,40 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Gator::AS3::EventGenerator do
4
-
5
- before(:each) do
6
- FileUtils.mkdir_p SANDBOX_LOCATION
7
- end
8
-
9
- after(:each) do
10
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
11
- end
12
-
13
- it "should create a file in the correct location" do
14
- gator = GatorProcess.new SANDBOX_LOCATION
15
- gator.should_receive(:fork) do |&block|
16
- block.call
17
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
18
- Gator::AS3::EventGenerator.start("org.devboy.MyShinyClass".split(" "))
19
- File.exist?(File.join(Gator::Project.project.path(:source, :main, :as3), "org/devboy/MyShinyClass.as")).should == true
20
- end
21
- gator.run_with_default_mock
22
- end
23
-
24
- it "should have the correct values" do
25
- gator = GatorProcess.new SANDBOX_LOCATION
26
- gator.should_receive(:fork) do |&block|
27
- block.call
28
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
29
- generator = Gator::AS3::EventGenerator.new("org.devboy.MyShinyClass".split(" "))
30
- generator.invoke_all
31
- generator.package_name.should == "org.devboy"
32
- generator.class_name.should == "MyShinyClass"
33
- generator.template_file.should == "as3/event.as.tt"
34
-
35
- end
36
- gator.run_with_default_mock
37
- end
38
-
39
-
40
- end
@@ -1,40 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Gator::AS3::InterfaceGenerator do
4
-
5
- before(:each) do
6
- FileUtils.mkdir_p SANDBOX_LOCATION
7
- end
8
-
9
- after(:each) do
10
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
11
- end
12
-
13
- it "should create a file in the correct location" do
14
- gator = GatorProcess.new SANDBOX_LOCATION
15
- gator.should_receive(:fork) do |&block|
16
- block.call
17
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
18
- Gator::AS3::InterfaceGenerator.start("org.devboy.MyShinyClass".split(" "))
19
- File.exist?(File.join(Gator::Project.project.path(:source, :main, :as3), "org/devboy/MyShinyClass.as")).should == true
20
- end
21
- gator.run_with_default_mock
22
- end
23
-
24
- it "should have the correct values" do
25
- gator = GatorProcess.new SANDBOX_LOCATION
26
- gator.should_receive(:fork) do |&block|
27
- block.call
28
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
29
- generator = Gator::AS3::InterfaceGenerator.new("org.devboy.MyShinyClass".split(" "))
30
- generator.invoke_all
31
- generator.package_name.should == "org.devboy"
32
- generator.class_name.should == "MyShinyClass"
33
- generator.template_file.should == "as3/interface.as.tt"
34
-
35
- end
36
- gator.run_with_default_mock
37
- end
38
-
39
-
40
- end
@@ -1,40 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Gator::AS3::ClassGenerator do
4
-
5
- before(:each) do
6
- FileUtils.mkdir_p SANDBOX_LOCATION
7
- end
8
-
9
- after(:each) do
10
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
11
- end
12
-
13
- it "should create a file in the correct location" do
14
- gator = GatorProcess.new SANDBOX_LOCATION
15
- gator.should_receive(:fork) do |block|
16
- block.call
17
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
18
- Gator::AS3::ClassGenerator.start("org.devboy.MyShinyClass".split(" "))
19
- File.exist?(File.join(Gator::Project.project.path(:source, :main, :as3), "org/devboy/MyShinyClass.as")).should == true
20
- end
21
- gator.run_with_default_mock
22
- end
23
-
24
- it "should have the correct values" do
25
- gator = GatorProcess.new SANDBOX_LOCATION
26
- gator.should_receive(:fork) do |block|
27
- block.call
28
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
29
- generator = Gator::AS3::ClassGenerator.new("org.devboy.MyShinyClass".split(" "))
30
- generator.invoke_all
31
- generator.package_name.should == "org.devboy"
32
- generator.class_name.should == "MyShinyClass"
33
- generator.template_file.should == "as3/klass.as.tt"
34
-
35
- end
36
- gator.run_with_default_mock
37
- end
38
-
39
-
40
- end
@@ -1,43 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../../../spec_helper'
2
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
3
-
4
- describe Gator::AS3::ASUnit3::ClassTestGenerator do
5
-
6
- before(:each) do
7
- FileUtils.mkdir_p SANDBOX_LOCATION
8
- end
9
-
10
- after(:each) do
11
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
12
- end
13
-
14
- it "should create a file in the correct location" do
15
- gator = GatorProcess.new SANDBOX_LOCATION
16
- gator.should_receive(:fork) do |&block|
17
- block.call
18
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
19
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
20
- Gator::AS3::ASUnit3::ClassTestGenerator.start("org.devboy.MyShinyClass".split(" "))
21
- File.exist?(File.join(Gator::Project.project.path(:source, :test, :as3), "org/devboy/MyShinyClassTest.as")).should == true
22
- end
23
- gator.run_with_default_mock
24
- end
25
-
26
- it "should have the correct values" do
27
- gator = GatorProcess.new SANDBOX_LOCATION
28
- gator.should_receive(:fork) do |&block|
29
- block.call
30
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
31
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
32
- generator = Gator::AS3::ASUnit3::ClassTestGenerator.new("org.devboy.MyShinyClass".split(" "))
33
- generator.invoke_all
34
- generator.package_name.should == "org.devboy"
35
- generator.class_name.should == "MyShinyClassTest"
36
- generator.template_file.should == "as3/test/asunit3/klass.as.tt"
37
-
38
- end
39
- gator.run_with_default_mock
40
- end
41
-
42
-
43
- end
@@ -1,43 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../../../spec_helper'
2
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
3
-
4
- describe Gator::AS3::ASUnit3::RunnerGenerator do
5
-
6
- before(:each) do
7
- FileUtils.mkdir_p SANDBOX_LOCATION
8
- end
9
-
10
- after(:each) do
11
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
12
- end
13
-
14
- it "should create a file in the correct location" do
15
- gator = GatorProcess.new SANDBOX_LOCATION
16
- gator.should_receive(:fork) do |&block|
17
- block.call
18
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
19
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
20
- Gator::AS3::ASUnit3::RunnerGenerator.start("org.devboy.MyShinyClass".split(" "))
21
- File.exist?(File.join(Gator::Project.project.path(:source, :test, :as3), "ASUnit3Runner.as")).should == true
22
- end
23
- gator.run_with_default_mock
24
- end
25
-
26
- it "should have the correct values" do
27
- gator = GatorProcess.new SANDBOX_LOCATION
28
- gator.should_receive(:fork) do |&block|
29
- block.call
30
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
31
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
32
- generator = Gator::AS3::ASUnit3::RunnerGenerator.new("org.devboy.MyShinyClass".split(" "))
33
- generator.invoke_all
34
- generator.package_name.should == ""
35
- generator.class_name.should == "ASUnit3Runner"
36
- generator.template_file.should == "as3/test/asunit3/runner.as.tt"
37
-
38
- end
39
- gator.run_with_default_mock
40
- end
41
-
42
-
43
- end
@@ -1,43 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../../../spec_helper'
2
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
3
-
4
- describe Gator::AS3::ASUnit3::SuiteGenerator do
5
-
6
- before(:each) do
7
- FileUtils.mkdir_p SANDBOX_LOCATION
8
- end
9
-
10
- after(:each) do
11
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
12
- end
13
-
14
- it "should create a file in the correct location" do
15
- gator = GatorProcess.new SANDBOX_LOCATION
16
- gator.should_receive(:fork) do |&block|
17
- block.call
18
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
19
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
20
- Gator::AS3::ASUnit3::SuiteGenerator.start("org.devboy.MyShinyClass".split(" "))
21
- File.exist?(File.join(Gator::Project.project.path(:source, :test, :as3), "AllTests.as")).should == true
22
- end
23
- gator.run_with_default_mock
24
- end
25
-
26
- it "should have the correct values" do
27
- gator = GatorProcess.new SANDBOX_LOCATION
28
- gator.should_receive(:fork) do |&block|
29
- block.call
30
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
31
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit3"
32
- generator = Gator::AS3::ASUnit3::SuiteGenerator.new("org.devboy.MyShinyClass".split(" "))
33
- generator.invoke_all
34
- generator.package_name.should == ""
35
- generator.class_name.should == "AllTests"
36
- generator.template_file.should == "as3/test/asunit3/suite.as.tt"
37
-
38
- end
39
- gator.run_with_default_mock
40
- end
41
-
42
-
43
- end
@@ -1,43 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../../../spec_helper'
2
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
3
-
4
- describe Gator::AS3::ASUnit4::ClassTestGenerator do
5
-
6
- before(:each) do
7
- FileUtils.mkdir_p SANDBOX_LOCATION
8
- end
9
-
10
- after(:each) do
11
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
12
- end
13
-
14
- it "should create a file in the correct location" do
15
- gator = GatorProcess.new SANDBOX_LOCATION
16
- gator.should_receive(:fork) do |&block|
17
- block.call
18
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
19
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
20
- Gator::AS3::ASUnit4::ClassTestGenerator.start("org.devboy.MyShinyClass".split(" "))
21
- File.exist?(File.join(Gator::Project.project.path(:source, :test, :as3), "org/devboy/MyShinyClassTest.as")).should == true
22
- end
23
- gator.run_with_default_mock
24
- end
25
-
26
- it "should have the correct values" do
27
- gator = GatorProcess.new SANDBOX_LOCATION
28
- gator.should_receive(:fork) do |&block|
29
- block.call
30
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
31
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
32
- generator = Gator::AS3::ASUnit4::ClassTestGenerator.new("org.devboy.MyShinyClass".split(" "))
33
- generator.invoke_all
34
- generator.package_name.should == "org.devboy"
35
- generator.class_name.should == "MyShinyClassTest"
36
- generator.template_file.should == "as3/test/asunit4/klass.as.tt"
37
-
38
- end
39
- gator.run_with_default_mock
40
- end
41
-
42
-
43
- end
@@ -1,43 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../../../spec_helper'
2
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
3
-
4
- describe Gator::AS3::ASUnit4::RunnerGenerator do
5
-
6
- before(:each) do
7
- FileUtils.mkdir_p SANDBOX_LOCATION
8
- end
9
-
10
- after(:each) do
11
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
12
- end
13
-
14
- it "should create a file in the correct location" do
15
- gator = GatorProcess.new SANDBOX_LOCATION
16
- gator.should_receive(:fork) do |&block|
17
- block.call
18
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
19
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
20
- Gator::AS3::ASUnit4::RunnerGenerator.start("org.devboy.MyShinyClass".split(" "))
21
- File.exist?(File.join(Gator::Project.project.path(:source, :test, :as3), "ASUnit4Runner.as")).should == true
22
- end
23
- gator.run_with_default_mock
24
- end
25
-
26
- it "should have the correct values" do
27
- gator = GatorProcess.new SANDBOX_LOCATION
28
- gator.should_receive(:fork) do |&block|
29
- block.call
30
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
31
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
32
- generator = Gator::AS3::ASUnit4::RunnerGenerator.new("org.devboy.MyShinyClass".split(" "))
33
- generator.invoke_all
34
- generator.package_name.should == ""
35
- generator.class_name.should == "ASUnit4Runner"
36
- generator.template_file.should == "as3/test/asunit4/runner.as.tt"
37
-
38
- end
39
- gator.run_with_default_mock
40
- end
41
-
42
-
43
- end
@@ -1,43 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../../../spec_helper'
2
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
3
-
4
- describe Gator::AS3::ASUnit4::SuiteGenerator do
5
-
6
- before(:each) do
7
- FileUtils.mkdir_p SANDBOX_LOCATION
8
- end
9
-
10
- after(:each) do
11
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
12
- end
13
-
14
- it "should create a file in the correct location" do
15
- gator = GatorProcess.new SANDBOX_LOCATION
16
- gator.should_receive(:fork) do |&block|
17
- block.call
18
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
19
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
20
- Gator::AS3::ASUnit4::SuiteGenerator.start("org.devboy.MyShinyClass".split(" "))
21
- File.exist?(File.join(Gator::Project.project.path(:source, :test, :as3), "AllTests.as")).should == true
22
- end
23
- gator.run_with_default_mock
24
- end
25
-
26
- it "should have the correct values" do
27
- gator = GatorProcess.new SANDBOX_LOCATION
28
- gator.should_receive(:fork) do |&block|
29
- block.call
30
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators"
31
- require File.dirname(__FILE__) + "/../../../../../lib/gator/as3/generators/test/asunit4"
32
- generator = Gator::AS3::ASUnit4::SuiteGenerator.new("org.devboy.MyShinyClass".split(" "))
33
- generator.invoke_all
34
- generator.package_name.should == ""
35
- generator.class_name.should == "AllTests"
36
- generator.template_file.should == "as3/test/asunit4/suite.as.tt"
37
-
38
- end
39
- gator.run_with_default_mock
40
- end
41
-
42
-
43
- end
@@ -1,42 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Gator::MXML::ApplicationGenerator do
4
-
5
- before(:each) do
6
- FileUtils.mkdir_p SANDBOX_LOCATION
7
- end
8
-
9
- after(:each) do
10
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
11
- end
12
-
13
- it "should create a file in the correct location" do
14
- gator = GatorProcess.new SANDBOX_LOCATION
15
- gator.should_receive(:fork) do |&block|
16
- block.call
17
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
18
- require File.dirname(__FILE__) + "/../../../lib/gator/mxml/generators"
19
- Gator::MXML::ApplicationGenerator.start("org.devboy.MyShinyClass".split(" "))
20
- File.exist?(File.join(Gator::Project.project.path(:source, :main, :as3), "org/devboy/MyShinyClass.mxml")).should == true
21
- end
22
- gator.run_with_default_mock
23
- end
24
-
25
- it "should have the correct values" do
26
- gator = GatorProcess.new SANDBOX_LOCATION
27
- gator.should_receive(:fork) do |&block|
28
- block.call
29
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
30
- require File.dirname(__FILE__) + "/../../../lib/gator/mxml/generators"
31
- generator = Gator::MXML::ApplicationGenerator.new("org.devboy.MyShinyClass".split(" "))
32
- generator.invoke_all
33
- generator.package_name.should == "org.devboy"
34
- generator.class_name.should == "MyShinyClass"
35
- generator.template_file.should == "mxml/application.mxml.tt"
36
-
37
- end
38
- gator.run_with_default_mock
39
- end
40
-
41
-
42
- end
@@ -1,42 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Gator::MXML::ComponentGenerator do
4
-
5
- before(:each) do
6
- FileUtils.mkdir_p SANDBOX_LOCATION
7
- end
8
-
9
- after(:each) do
10
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
11
- end
12
-
13
- it "should create a file in the correct location" do
14
- gator = GatorProcess.new SANDBOX_LOCATION
15
- gator.should_receive(:fork) do |&block|
16
- block.call
17
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
18
- require File.dirname(__FILE__) + "/../../../lib/gator/mxml/generators"
19
- Gator::MXML::ComponentGenerator.start("org.devboy.MyShinyClass".split(" "))
20
- File.exist?(File.join(Gator::Project.project.path(:source, :main, :as3), "org/devboy/MyShinyClass.mxml")).should == true
21
- end
22
- gator.run_with_default_mock
23
- end
24
-
25
- it "should have the correct values" do
26
- gator = GatorProcess.new SANDBOX_LOCATION
27
- gator.should_receive(:fork) do |&block|
28
- block.call
29
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
30
- require File.dirname(__FILE__) + "/../../../lib/gator/mxml/generators"
31
- generator = Gator::MXML::ComponentGenerator.new("org.devboy.MyShinyClass".split(" "))
32
- generator.invoke_all
33
- generator.package_name.should == "org.devboy"
34
- generator.class_name.should == "MyShinyClass"
35
- generator.template_file.should == "mxml/component.mxml.tt"
36
-
37
- end
38
- gator.run_with_default_mock
39
- end
40
-
41
-
42
- end
@@ -1,42 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Gator::MXML::SkinGenerator do
4
-
5
- before(:each) do
6
- FileUtils.mkdir_p SANDBOX_LOCATION
7
- end
8
-
9
- after(:each) do
10
- FileUtils.rm_r(SANDBOX_LOCATION) if File.directory? SANDBOX_LOCATION
11
- end
12
-
13
- it "should create a file in the correct location" do
14
- gator = GatorProcess.new SANDBOX_LOCATION
15
- gator.should_receive(:fork) do |&block|
16
- block.call
17
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
18
- require File.dirname(__FILE__) + "/../../../lib/gator/mxml/generators"
19
- Gator::MXML::SkinGenerator.start("org.devboy.MyShinyClass".split(" "))
20
- File.exist?(File.join(Gator::Project.project.path(:source, :main, :as3), "org/devboy/MyShinyClassSkin.mxml")).should == true
21
- end
22
- gator.run_with_default_mock
23
- end
24
-
25
- it "should have the correct values" do
26
- gator = GatorProcess.new SANDBOX_LOCATION
27
- gator.should_receive(:fork) do |&block|
28
- block.call
29
- require File.dirname(__FILE__) + "/../../../lib/gator/as3/generators"
30
- require File.dirname(__FILE__) + "/../../../lib/gator/mxml/generators"
31
- generator = Gator::MXML::SkinGenerator.new("org.devboy.MyShinyClass".split(" "))
32
- generator.invoke_all
33
- generator.package_name.should == "org.devboy"
34
- generator.class_name.should == "MyShinyClassSkin"
35
- generator.template_file.should == "mxml/skin.mxml.tt"
36
-
37
- end
38
- gator.run_with_default_mock
39
- end
40
-
41
-
42
- end