Module: Bueller::Generator::RiotMixin

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(generator) ⇒ Object



4
5
6
# File 'lib/bueller/generator/riot_mixin.rb', line 4

def self.extended(generator)
  generator.development_dependencies << 'riot'
end

Instance Method Details

#default_taskObject



8
9
10
# File 'lib/bueller/generator/riot_mixin.rb', line 8

def default_task
  'test'
end

#feature_support_extendObject



16
17
18
# File 'lib/bueller/generator/riot_mixin.rb', line 16

def feature_support_extend
  'Riot::Context'
end

#feature_support_requireObject



12
13
14
# File 'lib/bueller/generator/riot_mixin.rb', line 12

def feature_support_require
  'riot/context'
end

#test_dirObject



20
21
22
# File 'lib/bueller/generator/riot_mixin.rb', line 20

def test_dir
  'test'
end

#test_filenameObject



32
33
34
# File 'lib/bueller/generator/riot_mixin.rb', line 32

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

#test_helper_filenameObject



36
37
38
# File 'lib/bueller/generator/riot_mixin.rb', line 36

def test_helper_filename
  "teststrap.rb"
end

#test_patternObject



28
29
30
# File 'lib/bueller/generator/riot_mixin.rb', line 28

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

#test_taskObject



24
25
26
# File 'lib/bueller/generator/riot_mixin.rb', line 24

def test_task
  'test'
end