lib/test_track.rb in test_track-0.0.1 vs lib/test_track.rb in test_track-0.0.3

- old
+ new

@@ -1,31 +1,27 @@ require 'active_support/core_ext/module/attribute_accessors' module TestTrack - mattr_accessor :custom_config - @@custom_config = false + mattr_accessor :jasmine_manifest + @@jasmine_manifest = "jasmine" - mattr_accessor :jasmine_manifest - @@jasmine_manifest = "jasmine" + mattr_accessor :qunit_manifest + @@qunit_manifest = "qunit" - mattr_accessor :qunit_manifest - @@qunit_manifest = "qunit" + mattr_accessor :application_manifest + @@application_manifest = "application" - mattr_accessor :application_manifest - @@application_manifest = "application" + mattr_accessor :jasmine_path + @@jasmine_path = "spec/javascripts" - mattr_accessor :jasmine_path - @@jasmine_path = "spec/javascripts" + mattr_accessor :qunit_path + @@qunit_path = "test/javascripts" - mattr_accessor :qunit_path - @@qunit_path = "test/javascripts" + def self.setup + yield self + end - def self.setup - @@custom_config = true - yield self - require 'test_track/engine' - end - - require 'test_track/engine' unless @@custom_config end + +require 'test_track/engine'