Sha256: 76f687974b38d1e265d145f0bd8786781547822f7c5e542429913dc46533d73c

Contents?: true

Size: 592 Bytes

Versions: 16

Compression:

Stored size: 592 Bytes

Contents

require File.expand_path('../../test_helper/ruby', __FILE__)

module Project
  module Ruby
    def setup
      super
      test_helper_generator.mixin TestHelper::Ruby
    end

    private

    def generate_skeleton
      super

      FileUtils.mkdir_p(directory)

      within do
        create_gemfile
        declare_and_install_gems
        create_files
      end
    end

    def create_gemfile
      File.open('Gemfile', 'w') do |f|
        contents = <<-EOT
          source 'https://rubygems.org'
          gem 'rake'
        EOT
        f.write(contents)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rr-3.1.1 spec/support/project/ruby.rb
rr-3.1.0 spec/support/project/ruby.rb
rr-3.0.9 spec/support/project/ruby.rb
rr-3.0.8 spec/support/project/ruby.rb
rr-3.0.7 spec/support/project/ruby.rb
rr-3.0.6 spec/support/project/ruby.rb
rr-3.0.5 spec/support/project/ruby.rb
rr-3.0.4 spec/support/project/ruby.rb
rr-3.0.3 spec/support/project/ruby.rb
rr-3.0.2 spec/support/project/ruby.rb
rr-3.0.1 spec/support/project/ruby.rb
rr-3.0.0 spec/support/project/ruby.rb
rr-1.2.1 spec/support/project/ruby.rb
rr-1.2.0 spec/support/project/ruby.rb
rr-1.1.2 spec/support/project/ruby.rb
rr-1.1.2.rc1 spec/support/project/ruby.rb