Permalink
Browse files

should_be_installed takes many gems

  • Loading branch information...
1 parent 58b7262 commit 912c26f1d3f49268b7545bfb05c886e8069ec0eb @hone hone committed Nov 12, 2010
Showing with 11 additions and 15 deletions.
  1. +11 −15 spec/install/gems/dependency_api_spec.rb
View
26 spec/install/gems/dependency_api_spec.rb
@@ -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
@@ -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

0 comments on commit 912c26f

Please sign in to comment.