Module: Bueller::Generator::ShindoMixin
- Defined in:
- lib/bueller/generator/shindo_mixin.rb
Class Method Summary collapse
Instance Method Summary collapse
- #default_task ⇒ Object
- #feature_support_extend ⇒ Object
- #feature_support_require ⇒ Object
- #test_dir ⇒ Object
- #test_filename ⇒ Object
- #test_helper_filename ⇒ Object
- #test_pattern ⇒ Object
- #test_task ⇒ Object
Class Method Details
.extended(generator) ⇒ Object
4 5 6 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 4 def self.extended(generator) generator.development_dependencies << 'shindo' end |
Instance Method Details
#default_task ⇒ Object
8 9 10 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 8 def default_task 'tests' end |
#feature_support_extend ⇒ Object
17 18 19 20 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 17 def feature_support_extend # 'Test::Unit::Assertions' nil end |
#feature_support_require ⇒ Object
12 13 14 15 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 12 def feature_support_require # 'test/unit/assertions' nil end |
#test_dir ⇒ Object
22 23 24 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 22 def test_dir 'tests' end |
#test_filename ⇒ Object
34 35 36 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 34 def test_filename "#{require_name}_tests.rb" end |
#test_helper_filename ⇒ Object
38 39 40 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 38 def test_helper_filename "tests_helper.rb" end |
#test_pattern ⇒ Object
30 31 32 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 30 def test_pattern 'tests/**/*_tests.rb' end |
#test_task ⇒ Object
26 27 28 |
# File 'lib/bueller/generator/shindo_mixin.rb', line 26 def test_task 'tests' end |