Sha256: 34911075966226ca51769748e6bf3ac7ca67f41188843348e9af10ea884e03ad

Contents?: true

Size: 780 Bytes

Versions: 25

Compression:

Stored size: 780 Bytes

Contents

require "spec_helper"

describe "bundle gem" do
  before :each do
    bundle 'gem test-gem'
  end

  it "generates a gem skeleton" do
    bundled_app("test-gem/test-gem.gemspec").should exist
    bundled_app("test-gem/Gemfile").should exist
    bundled_app("test-gem/Rakefile").should exist
    bundled_app("test-gem/lib/test-gem.rb").should exist
    bundled_app("test-gem/lib/test-gem/version.rb").should exist
  end

  it "starts with version 0.0.1" do
    bundled_app("test-gem/lib/test-gem/version.rb").read.should =~ /VERSION = "0.0.1"/
  end

  it "nests constants so they work" do
    bundled_app("test-gem/lib/test-gem/version.rb").read.should =~ /module Test\n  module Gem/
    bundled_app("test-gem/lib/test-gem.rb").read.should =~ /module Test\n  module Gem/
  end
end

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
bundler-1.0.13 spec/other/newgem_spec.rb
bundler-1.1.pre.2 spec/other/newgem_spec.rb
bundler-1.0.12 spec/other/newgem_spec.rb
bundler-1.0.11 spec/other/newgem_spec.rb
bundler_package_git-1.1.pre.1 spec/other/newgem_spec.rb
bundler-1.1.pre.1 spec/other/newgem_spec.rb
bundler-1.0.10 spec/other/newgem_spec.rb
bundler-1.1.pre spec/other/newgem_spec.rb
bundler-1.0.9 spec/other/newgem_spec.rb
bundler-1.0.7 spec/other/newgem_spec.rb
bundler-1.0.5 spec/other/newgem_spec.rb
honkster-bundler-1.1.pre spec/other/newgem_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb