Sha256: 3cc8e838510e0298510ec3f661216332c0744f254d204733e3bce916776a32c8

Contents?: true

Size: 673 Bytes

Versions: 17

Compression:

Stored size: 673 Bytes

Contents

class Juwelier
  class Generator
    module ShouldaMixin
      def self.extended(generator)
        generator.development_dependencies << ["shoulda", ">= 0"]
      end

      def default_task
        'test'
      end

      def feature_support_require
        'test/unit/assertions'
      end

      def feature_support_extend
        'Test::Unit::Assertions'
      end

      def test_dir
        'test'
      end

      def test_task
        'test'
      end

      def test_pattern
        'test/**/test_*.rb'
      end

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

      def test_helper_filename
        "helper.rb"
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
juwelier-2.4.9 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.4.7 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.4.6 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.4.5 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.4.4 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.4.1 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.4.0 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.3.6 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.3.4 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.3.2 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.3.0 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.2.3 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.2.1 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.1.3 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.1.2 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.1.1 lib/juwelier/generator/shoulda_mixin.rb
juwelier-2.1.0 lib/juwelier/generator/shoulda_mixin.rb