Module: Bueller::Generator::BaconMixin
- Defined in:
- lib/bueller/generator/bacon_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
5 6 7 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 5 def self.extended(generator) generator.development_dependencies << 'bacon' end |
Instance Method Details
#default_task ⇒ Object
9 10 11 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 9 def default_task 'spec' end |
#feature_support_extend ⇒ Object
17 18 19 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 17 def feature_support_extend 'Test::Unit::Assertions' # NOTE can't use bacon inside of cucumber actually end |
#feature_support_require ⇒ Object
13 14 15 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 13 def feature_support_require 'test/unit/assertions' end |
#test_dir ⇒ Object
21 22 23 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 21 def test_dir 'spec' end |
#test_filename ⇒ Object
33 34 35 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 33 def test_filename "#{require_name}_spec.rb" end |
#test_helper_filename ⇒ Object
37 38 39 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 37 def test_helper_filename "spec_helper.rb" end |
#test_pattern ⇒ Object
29 30 31 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 29 def test_pattern 'spec/**/*_spec.rb' end |
#test_task ⇒ Object
25 26 27 |
# File 'lib/bueller/generator/bacon_mixin.rb', line 25 def test_task 'spec' end |