Module: Bueller::Generator::TestunitMixin

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

Instance Method Summary collapse

Instance Method Details

#default_taskObject



5
6
7
# File 'lib/bueller/generator/testunit_mixin.rb', line 5

def default_task
  'test'
end

#feature_support_extendObject



13
14
15
# File 'lib/bueller/generator/testunit_mixin.rb', line 13

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

#feature_support_requireObject



9
10
11
# File 'lib/bueller/generator/testunit_mixin.rb', line 9

def feature_support_require
  'test/unit/assertions'
end

#test_dirObject



17
18
19
# File 'lib/bueller/generator/testunit_mixin.rb', line 17

def test_dir
  'test'
end

#test_filenameObject



29
30
31
# File 'lib/bueller/generator/testunit_mixin.rb', line 29

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

#test_helper_filenameObject



33
34
35
# File 'lib/bueller/generator/testunit_mixin.rb', line 33

def test_helper_filename
  "helper.rb"
end

#test_patternObject



25
26
27
# File 'lib/bueller/generator/testunit_mixin.rb', line 25

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

#test_taskObject



21
22
23
# File 'lib/bueller/generator/testunit_mixin.rb', line 21

def test_task
  'test'
end