Sha256: d63f0d766e97390ee825973c9e5c5bdb4ebd0fe7798e6d1af8da72bd5d7a6fa4

Contents?: true

Size: 717 Bytes

Versions: 8

Compression:

Stored size: 717 Bytes

Contents

class Jeweler
  class Generator
    module RspecMixin
      def self.extended(generator)
        generator.development_dependencies << ['rspec', '~> 3.5.0']
      end

      def default_task
        'spec'
      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
        'spec'
      end

      def test_pattern
        'spec/**/*_spec.rb'
      end

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

      def test_helper_filename
        'spec_helper.rb'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jeweler-2.3.9 lib/jeweler/generator/rspec_mixin.rb
jeweler-2.3.7 lib/jeweler/generator/rspec_mixin.rb
jeweler-2.3.6 lib/jeweler/generator/rspec_mixin.rb
jeweler-2.3.5 lib/jeweler/generator/rspec_mixin.rb
jeweler-2.3.3 lib/jeweler/generator/rspec_mixin.rb
jeweler-2.3.2 lib/jeweler/generator/rspec_mixin.rb
jeweler-2.3.1 lib/jeweler/generator/rspec_mixin.rb
jeweler-2.3.0 lib/jeweler/generator/rspec_mixin.rb