Module: Jeweler::Generator::TestunitMixin

Defined in:
lib/jeweler/generator/testunit_mixin.rb

Instance Method Summary collapse

Instance Method Details

#default_taskObject



4
5
6
# File 'lib/jeweler/generator/testunit_mixin.rb', line 4

def default_task
  'test'
end

#feature_support_extendObject



12
13
14
# File 'lib/jeweler/generator/testunit_mixin.rb', line 12

def feature_support_extend
  'Test::Unit::Assertions'
end

#feature_support_requireObject



8
9
10
# File 'lib/jeweler/generator/testunit_mixin.rb', line 8

def feature_support_require
  'test/unit/assertions'
end

#test_dirObject



16
17
18
# File 'lib/jeweler/generator/testunit_mixin.rb', line 16

def test_dir
  'test'
end

#test_filenameObject



28
29
30
# File 'lib/jeweler/generator/testunit_mixin.rb', line 28

def test_filename
  "test_#{require_name}.rb"
end

#test_helper_filenameObject



32
33
34
# File 'lib/jeweler/generator/testunit_mixin.rb', line 32

def test_helper_filename
  'helper.rb'
end

#test_patternObject



24
25
26
# File 'lib/jeweler/generator/testunit_mixin.rb', line 24

def test_pattern
  'test/**/test_*.rb'
end

#test_taskObject



20
21
22
# File 'lib/jeweler/generator/testunit_mixin.rb', line 20

def test_task
  'test'
end