Sha256: 667eeb8be17643249013da4ea3abbf315233cd38463d90cc444e3bf57d94f622

Contents?: true

Size: 594 Bytes

Versions: 16

Compression:

Stored size: 594 Bytes

Contents

require File.expand_path('../test_unit', __FILE__)

module TestFile
  module RailsTestUnit
    include TestUnit

    def setup(project, index)
      super
      self.directory =
        if project.rails_version == 4
          File.join(project.directory, 'test', 'models')
        else
          File.join(project.directory, 'test', 'unit')
        end
      test_case_generator.configure do |test_case|
        test_case.superclass = 'ActiveSupport::TestCase'
      end
    end

    # Don't require anything; this will happen in the test helper
    def all_requires
      []
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rr-3.1.1 spec/support/test_file/rails_test_unit.rb
rr-3.1.0 spec/support/test_file/rails_test_unit.rb
rr-3.0.9 spec/support/test_file/rails_test_unit.rb
rr-3.0.8 spec/support/test_file/rails_test_unit.rb
rr-3.0.7 spec/support/test_file/rails_test_unit.rb
rr-3.0.6 spec/support/test_file/rails_test_unit.rb
rr-3.0.5 spec/support/test_file/rails_test_unit.rb
rr-3.0.4 spec/support/test_file/rails_test_unit.rb
rr-3.0.3 spec/support/test_file/rails_test_unit.rb
rr-3.0.2 spec/support/test_file/rails_test_unit.rb
rr-3.0.1 spec/support/test_file/rails_test_unit.rb
rr-3.0.0 spec/support/test_file/rails_test_unit.rb
rr-1.2.1 spec/support/test_file/rails_test_unit.rb
rr-1.2.0 spec/support/test_file/rails_test_unit.rb
rr-1.1.2 spec/support/test_file/rails_test_unit.rb
rr-1.1.2.rc1 spec/support/test_file/rails_test_unit.rb