Skip to content

Commit

Permalink
Added a failing test that illustrates rubygems#586
Browse files Browse the repository at this point in the history
  • Loading branch information
spraints authored and wycats committed Sep 1, 2010
1 parent 4405625 commit a193da0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions spec/install/gems/win32_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
require 'spec_helper'

describe "bundle install with win32-generated lockfile" do
it 'should read lockfile' do
File.open(bundled_app('Gemfile.lock'), 'wb') do |f|
f << "GEM\r\n"
f << " remote: file:#{gem_repo1}/\r\n"
f << " specs:\r\n"
f << "\r\n"
f << " rack (1.0.0)\r\n"
f << "\r\n"
f << "PLATFORMS\r\n"
f << " ruby\r\n"
f << "\r\n"
f << "DEPENDENCIES\r\n"
f << " rack\r\n"
end

install_gemfile <<-G, :exit_status => true
source "file://#{gem_repo1}"
gem "rack"
G
@exitstatus.should == 0
end
end

0 comments on commit a193da0

Please sign in to comment.