Commit aead37040905860c80cbaa63b8e195743238ce8d
- Date: Thu Apr 17 08:20:11 +0000 2008
- Committer: Dr Nic Williams (drnicwilliams@gmail.com)
- Author: Dr Nic Williams (drnicwilliams@gmail.com)
- Commit SHA1: aead37040905860c80cbaa63b8e195743238ce8d
- Tree SHA1: 6ab47555d656a05f4662ba5a42c9630cf63d3740
setup test framework + rakefile
Commit diff
| |   |
| 1 | require 'rubygems' |
| 2 | require 'rake' |
| 3 | require 'rake/testtask' |
| 4 | |
| 5 | APP_NAME='RubyAMP.tmbundle' |
| 6 | APP_ROOT=File.dirname(__FILE__) |
| 7 | |
| 8 | RUBY_APP='ruby' |
| 9 | |
| 10 | desc "TMBundle Test Task" |
| 11 | task :default => [ :test ] |
| 12 | Rake::TestTask.new { |t| |
| 13 | t.libs << "test" |
| 14 | t.pattern = 'Support/test/test_*.rb' |
| 15 | t.verbose = true |
| 16 | t.warning = false |
| 17 | } |
| 18 | Dir['Support/tasks/**/*.rake'].each { |file| load file } |
| toggle raw diff |
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,18 @@
+require 'rubygems'
+require 'rake'
+require 'rake/testtask'
+
+APP_NAME='RubyAMP.tmbundle'
+APP_ROOT=File.dirname(__FILE__)
+
+RUBY_APP='ruby'
+
+desc "TMBundle Test Task"
+task :default => [ :test ]
+Rake::TestTask.new { |t|
+ t.libs << "test"
+ t.pattern = 'Support/test/test_*.rb'
+ t.verbose = true
+ t.warning = false
+}
+Dir['Support/tasks/**/*.rake'].each { |file| load file } |
| |   |
| 1 | class GoToExternal |
| 2 | # Returns the path of the project or file that best |
| 3 | # matches the context of where the cursor/caret is currently |
| 4 | def self.run |
| 5 | |
| 6 | end |
| 7 | end |
| toggle raw diff |
--- /dev/null
+++ b/Support/lib/go_to_external.rb
@@ -0,0 +1,7 @@
+class GoToExternal
+ # Returns the path of the project or file that best
+ # matches the context of where the cursor/caret is currently
+ def self.run
+
+ end
+end
\ No newline at end of file |
| |   |
| 1 | require File.dirname(__FILE__) + "/test_helper" |
| 2 | require "go_to_external" |
| 3 | |
| 4 | class TestGoToExternal < Test::Unit::TestCase |
| 5 | def test_case_name |
| 6 | |
| 7 | end |
| 8 | end |
| toggle raw diff |
--- /dev/null
+++ b/Support/test/test_go_to_external.rb
@@ -0,0 +1,8 @@
+require File.dirname(__FILE__) + "/test_helper"
+require "go_to_external"
+
+class TestGoToExternal < Test::Unit::TestCase
+ def test_case_name
+
+ end
+end
\ No newline at end of file |
| |   |
| 1 | require "test/unit" |
| 2 | |
| 3 | $:.unshift File.dirname(__FILE__) + "/../lib" |
| 4 | $:.unshift File.dirname(__FILE__) + "/../bin" |
| toggle raw diff |
--- /dev/null
+++ b/Support/test/test_helper.rb
@@ -0,0 +1,4 @@
+require "test/unit"
+
+$:.unshift File.dirname(__FILE__) + "/../lib"
+$:.unshift File.dirname(__FILE__) + "/../bin"
\ No newline at end of file |