Skip to content

Commit

Permalink
should_be_installed takes many gems
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Nov 12, 2010
1 parent 58b7262 commit 912c26f
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions spec/install/gems/dependency_api_spec.rb
Expand Up @@ -18,14 +18,13 @@
G

bundle :install, :artifice => "endpoint"
[
should_be_installed(
"rails 2.3.2",
"actionpack 2.3.2",
"activerecord 2.3.2",
"actionmailer 2.3.2",
"activeresource 2.3.2",
"activesupport 2.3.2"
].each {|gem| should_be_installed gem }
"activesupport 2.3.2")
end

it "falls back when the API errors out" do
Expand Down Expand Up @@ -53,18 +52,15 @@
G
bundle :install, :artifice => "endpoint"

[
["activesupport", "2.3.2"],
["actionpack", "2.3.2"],
["actionmailer", "2.3.2"],
["activeresource", "2.3.2"],
["activesupport", "2.3.2"],
["thin", "1.0.0"],
["rack", "1.0.0"],
["rails", "2.3.2"]
].each do |gem, version|
should_be_installed "#{gem} #{version}"
end
should_be_installed(
"activesupport 2.3.2",
"actionpack 2.3.2",
"actionmailer 2.3.2",
"activeresource 2.3.2",
"activesupport 2.3.2",
"thin 1.0.0",
"rack 1.0.0",
"rails 2.3.2")
end

it "falls back when Gemcutter API doesn't return proper Marshal format" do
Expand Down

0 comments on commit 912c26f

Please sign in to comment.