Module: Bueller::Generator::RspecMixin
- Defined in:
- lib/bueller/generator/rspec_mixin.rb
Defined Under Namespace
Modules: InstanceMethods
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/rspec_mixin.rb', line 4 def self.extended(generator) generator.development_dependencies << 'rspec' end |
Instance Method Details
#default_task ⇒ Object
8 9 10 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 8 def default_task 'examples' end |
#feature_support_extend ⇒ Object
16 17 18 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 16 def feature_support_extend nil # Cucumber is smart enough extend Spec::Expectations on its own end |
#feature_support_require ⇒ Object
12 13 14 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 12 def feature_support_require 'rspec/expectations' end |
#test_dir ⇒ Object
20 21 22 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 20 def test_dir 'spec' end |
#test_filename ⇒ Object
32 33 34 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 32 def test_filename "#{require_name}_spec.rb" end |
#test_helper_filename ⇒ Object
36 37 38 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 36 def test_helper_filename "spec_helper.rb" end |
#test_pattern ⇒ Object
28 29 30 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 28 def test_pattern 'spec/**/*_spec.rb' end |
#test_task ⇒ Object
24 25 26 |
# File 'lib/bueller/generator/rspec_mixin.rb', line 24 def test_task 'examples' end |