Permalink
Browse files

Moved test workers into their own directory.

  • Loading branch information...
1 parent 94ad4b9 commit fd110b7a4178742363e79ed178cdc1bc1fde843d @treeder treeder committed Feb 26, 2012
File renamed without changes.
File renamed without changes.
View
@@ -1,8 +1,7 @@
require_relative 'test_base'
-require_relative 'one_line_worker'
-require_relative 'progress_worker'
-require_relative 'workers/qb_worker'
-require_relative 'workers/big_gems_worker'
+require_relative 'workers/one_line_worker'
+require_relative 'workers/progress_worker'
+require_relative 'workers/fail_worker'
class QuickRun < TestBase
View
@@ -16,9 +16,9 @@
IronWorker.config.merged_gems={}
-require_relative "iw_test_worker"
-require_relative "iw_test_worker_2"
-require_relative "iw_test_worker_3"
+require_relative "workers/iw_test_worker"
+require_relative "workers/iw_test_worker_2"
+require_relative "workers/iw_test_worker_3"
class TestBase < Test::Unit::TestCase
View
@@ -1,10 +1,10 @@
require_relative 'test_base'
-require_relative 'cool_worker'
-require_relative 'cool_model'
-require_relative 'gem_dependency_worker'
-require_relative 'fail_worker'
-require_relative 'progress_worker'
-require_relative 'one_line_worker'
+require_relative 'workers/cool_worker'
+require_relative 'models/cool_model'
+require_relative 'workers/gem_dependency_worker'
+require_relative 'workers/fail_worker'
+require_relative 'workers/progress_worker'
+require_relative 'workers/one_line_worker'
require_relative 'workers/big_gems_worker'
require_relative 'workers/tmp_dir_worker'
require_relative 'workers/webhook_worker'
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,8 @@
# bump......
class FailWorker < IronWorker::Base
+ attr_accessor :x
+
def run
puts "I am about to fail..."
raise "Dang, I failed. Fail whale."
File renamed without changes.
@@ -2,8 +2,8 @@
require_relative "one_line_worker"
class TestWorker2 < IronWorker::Base
- merge File.join(File.dirname(__FILE__), 'models', 'model_1.rb')
- unmerge 'models/model_2.rb'
+ merge File.join(File.dirname(__FILE__), '../' 'models', 'model_1.rb')
+ unmerge '../models/model_2.rb'
merge_worker File.join(File.dirname(__FILE__), 'second_worker.rb'), ' SecondWorker'
merge_worker File.join(File.dirname(__FILE__), 'one_line_worker.rb'), OneLineWorker
#merge_worker 'second_worker.rb', 'SecondWorker'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fd110b7

Please sign in to comment.