Sha256: 10c8c6683bef8a133d5b03753bd81f66d48cc986ab0b050bb50e791384c7f23e

Contents?: true

Size: 986 Bytes

Versions: 47

Compression:

Stored size: 986 Bytes

Contents

require 'spec_helper'

describe "Gem::Specification#match_platform" do
  it "does not match platforms other than the gem platform" do
    darwin = gem "lol", "1.0", "platform_specific-1.0-x86-darwin-10"
    darwin.match_platform(pl('java')).should be_false
  end
end

describe "Bundler::GemHelpers#generic" do
  include Bundler::GemHelpers

  it "converts non-windows platforms into ruby" do
    generic(pl('x86-darwin-10')).should == pl('ruby')
  end
end

describe "Gem::SourceIndex#refresh!" do
  rubygems_1_7 = Gem::Version.new(Gem::VERSION) >= Gem::Version.new("1.7.0")

  before do
    install_gemfile <<-G
      source "file://#{gem_repo1}"
      gem "rack"
    G
  end

  it "does not explode when called", :if => rubygems_1_7 do
    run "Gem.source_index.refresh!"
    run "Gem::SourceIndex.new([]).refresh!"
  end

  it "does not explode when called", :unless => rubygems_1_7 do
    run "Gem.source_index.refresh!"
    run "Gem::SourceIndex.from_gems_in([]).refresh!"
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
bundler-1.2.5 spec/other/ext_spec.rb
bundler-1.2.4 spec/other/ext_spec.rb
bundler-1.2.3 spec/other/ext_spec.rb
bundler-1.2.2 spec/other/ext_spec.rb
bundler-1.2.1 spec/other/ext_spec.rb
bundler-1.2.0 spec/other/ext_spec.rb
bundler-1.2.0.rc.2 spec/other/ext_spec.rb
bundler-1.2.0.rc spec/other/ext_spec.rb
bundler-1.1.5 spec/other/ext_spec.rb
bundler-1.2.0.pre.1 spec/other/ext_spec.rb
bundler-1.1.4 spec/other/ext_spec.rb
rkh-bundler-1.2.0.pre spec/other/ext_spec.rb
bundler-1.2.0.pre spec/other/ext_spec.rb
bundler-1.1.3 spec/other/ext_spec.rb
bundler-1.1.2 spec/other/ext_spec.rb
bundler-1.1.1 spec/other/ext_spec.rb
bundler-1.1.0 spec/other/ext_spec.rb
bundler-1.1.rc.8 spec/other/ext_spec.rb
bundler-1.0.22 spec/other/ext_spec.rb
bundler-1.1.rc.7 spec/other/ext_spec.rb