Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Testing exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlhuda committed Feb 22, 2010
1 parent dea3313 commit 85b48a0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/other/exec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,19 @@
out.should == "1.0.0"
end
end

it "handles gems installed with --without" do
install_gemfile <<-G, :without => :rails
source "file://#{gem_repo1}"
gem "rack" # rack 0.9.1 and 1.0 exist
group :middleware do
gem "rack_middleware" # rack_middleware depends on rack 0.9.1
end
G

bundle "exec rackup"

out.should == "0.9.1"
end
end
5 changes: 5 additions & 0 deletions spec/support/builders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ def build_repo1
build_gem "rack", %w(0.9.1 1.0.0) do |s|
s.executables = "rackup"
end

build_gem "rack_middleware", "1.0" do |s|
s.add_dependency "rack", "0.9.1"
end

build_gem "rails", "2.3.2" do |s|
s.executables = "rails"
s.add_dependency "rake"
Expand Down

0 comments on commit 85b48a0

Please sign in to comment.