Module: Jeweler::Generator::ShindoMixin

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(generator) ⇒ Object



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

def self.extended(generator)
  generator.development_dependencies << ['shindo', '>= 0']
end

Instance Method Details

#default_taskObject



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

def default_task
  'tests'
end

#feature_support_extendObject



17
18
19
20
# File 'lib/jeweler/generator/shindo_mixin.rb', line 17

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

#feature_support_requireObject



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

def feature_support_require
  # 'test/unit/assertions'
  nil
end

#test_dirObject



22
23
24
# File 'lib/jeweler/generator/shindo_mixin.rb', line 22

def test_dir
  'tests'
end

#test_filenameObject



34
35
36
# File 'lib/jeweler/generator/shindo_mixin.rb', line 34

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

#test_helper_filenameObject



38
39
40
# File 'lib/jeweler/generator/shindo_mixin.rb', line 38

def test_helper_filename
  'tests_helper.rb'
end

#test_patternObject



30
31
32
# File 'lib/jeweler/generator/shindo_mixin.rb', line 30

def test_pattern
  'tests/**/*_tests.rb'
end

#test_taskObject



26
27
28
# File 'lib/jeweler/generator/shindo_mixin.rb', line 26

def test_task
  'tests'
end