Skip to content
Browse files

Reorganize require statement

  • Loading branch information...
1 parent b0a0c97 commit 50affbebf27faf5537ce419f69c4a94dd84de788 @jingweno committed Jan 15, 2012
Showing with 17 additions and 16 deletions.
  1. +0 −2 .rspec
  2. +15 −0 lib/priority_test.rb
  3. +0 −12 lib/priority_test/core.rb
  4. +0 −2 lib/priority_test/gateway.rb
  5. +1 −0 lib/priority_test/rspec.rb
  6. +1 −0 lib/priority_test/rspec2.rb
View
2 .rspec
@@ -1,2 +0,0 @@
---color
---format documentation
View
15 lib/priority_test.rb
@@ -15,8 +15,23 @@ class << self
self.env = ENV['PRIORITY_TEST_ENV'] || 'production'
end
+# Core
require_pt 'core'
+require_pt 'core/configuration'
+require_pt 'core/configuration_options'
+require_pt 'core/option_parser'
+require_pt 'core/runner'
+require_pt 'core/priority'
+require_pt 'core/domain_object'
+require_pt 'core/validations_helper'
+require_pt 'core/all_tests'
+require_pt 'core/service'
+require_pt 'core/test_result_collector'
+require_pt 'core/priority_sort_element'
+
require_pt 'gateway'
+require_pt 'gateway/sequel'
+
require_pt 'version'
PriorityTest.configure do |config|
View
12 lib/priority_test/core.rb
@@ -1,15 +1,3 @@
-require_pt 'core/configuration'
-require_pt 'core/configuration_options'
-require_pt 'core/option_parser'
-require_pt 'core/runner'
-require_pt 'core/priority'
-require_pt 'core/domain_object'
-require_pt 'core/validations_helper'
-require_pt 'core/all_tests'
-require_pt 'core/service'
-require_pt 'core/test_result_collector'
-require_pt 'core/priority_sort_element'
-
module PriorityTest
module Core
# Remove dependency of Sequel so that it can move out of autoload
View
2 lib/priority_test/gateway.rb
@@ -1,5 +1,3 @@
-require_pt 'gateway/sequel'
-
module PriorityTest
module Gateway
def self.setup
View
1 lib/priority_test/rspec.rb
@@ -1,4 +1,5 @@
require 'rspec/core'
+
require_pt 'rspec2'
require_pt 'rspec2/patch/world'
require_pt 'rspec2/patch/example_group'
View
1 lib/priority_test/rspec2.rb
@@ -1,4 +1,5 @@
require 'rspec/core'
+
require_pt 'rspec2/relative_path'
require_pt 'rspec2/formatter'
require_pt 'rspec2/example_sorter'

0 comments on commit 50affbe

Please sign in to comment.
Something went wrong with that request. Please try again.