Sha256: f6cb4ac94c84f89931a84080cd6adf686574f0b41369c939dbd78ba41a1fd807

Contents?: true

Size: 718 Bytes

Versions: 101

Compression:

Stored size: 718 Bytes

Contents

class Jeweler
  class Generator
    module RspecMixin
      def self.extended(generator)
        generator.development_dependencies << ["rspec", "~> 2.3.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

101 entries across 47 versions & 4 rubygems

Version Path
jeweler2-2.0.8 lib/jeweler/generator/rspec_mixin.rb
jeweler2-2.0.7 lib/jeweler/generator/rspec_mixin.rb
jeweler2-2.0.6 lib/jeweler/generator/rspec_mixin.rb
jeweler2-2.0.4 lib/jeweler/generator/rspec_mixin.rb
jeweler2-2.0.2 lib/jeweler/generator/rspec_mixin.rb
jeweler2-2.0.1 lib/jeweler/generator/rspec_mixin.rb
jeweler2-2.0.0 lib/jeweler/generator/rspec_mixin.rb
dirty_history-0.3.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/generator/rspec_mixin.rb
dirty_history-0.3.0 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/rspec_mixin.rb
dirty_history-0.3.0 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/rspec_mixin.rb
dirty_history-0.3.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/rspec_mixin.rb
dirty_history-0.2.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/rspec_mixin.rb
dirty_history-0.2.0 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/rspec_mixin.rb
jeweler-1.6.4 lib/jeweler/generator/rspec_mixin.rb
jeweler-1.6.3 lib/jeweler/generator/rspec_mixin.rb
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/jeweler-1.6.2/lib/jeweler/generator/rspec_mixin.rb
jeweler-1.6.2 lib/jeweler/generator/rspec_mixin.rb
jeweler-1.6.1 lib/jeweler/generator/rspec_mixin.rb
dirty_history-0.1.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/rspec_mixin.rb
jeweler-1.6.0 lib/jeweler/generator/rspec_mixin.rb