Sha256: 084ee8102e82c74531425d4ed0896040f6b2eb4bd7799d7e46f9202b0136ad67
Contents?: true
Size: 931 Bytes
Versions: 9
Compression:
Stored size: 931 Bytes
Contents
class Bueller class Generator module RspecMixin def self.extended(generator) generator.development_dependencies << 'rspec' end def default_task 'examples' end def feature_support_require 'rspec/expectations' end def feature_support_extend nil # Cucumber is smart enough extend Spec::Expectations on its own end def test_dir 'spec' end def test_task 'examples' end def test_pattern 'spec/**/*_spec.rb' end def test_filename "#{require_name}_spec.rb" end def test_helper_filename "spec_helper.rb" end module InstanceMethods def create_files super output_template_in_target File.join(testing_framework.to_s, '.rspec'), '.rspec' end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems