Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

should_be_installed takes many gems

  • Loading branch information...
commit 912c26f1d3f49268b7545bfb05c886e8069ec0eb 1 parent 58b7262
@hone hone authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.