aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime/platform_spec.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-16 10:55:10 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-22 15:58:30 -0700
commit48a2236cdf7bbcb62f2da49c624f172f479490cc (patch)
tree44f2e368f8d3fd9ed283401d73e9376b2399a45d /spec/runtime/platform_spec.rb
parenta60822aa09051c813da78211d1e476d01ee6662b (diff)
downloadbundler-48a2236cdf7bbcb62f2da49c624f172f479490cc.tar.gz
Add a runtime platform spec
Diffstat (limited to 'spec/runtime/platform_spec.rb')
-rw-r--r--spec/runtime/platform_spec.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/runtime/platform_spec.rb b/spec/runtime/platform_spec.rb
index 5137ea60..5c0f4eeb 100644
--- a/spec/runtime/platform_spec.rb
+++ b/spec/runtime/platform_spec.rb
@@ -31,4 +31,35 @@ describe "Bundler.setup with multi platform stuff" do
out.should == "WIN"
end
+
+ it "will resolve correctly on the current platform when the lockfile was targetted for a different one" do
+ lockfile <<-G
+ GEM
+ remote: file:#{gem_repo1}/
+ specs:
+ nokogiri (1.4.2-java)
+ weakling (= 0.0.3)
+ weakling (0.0.3)
+
+ PLATFORMS
+ java
+
+ DEPENDENCIES
+ nokogiri
+ G
+
+ system_gems "nokogiri-1.4.2"
+
+ gemfile <<-G
+ Gem.platforms = [Gem::Platform::RUBY, Gem::Platform.new("x86-darwin-10")]
+ source "file://#{gem_repo1}"
+ gem "nokogiri"
+ G
+
+ should_be_installed "nokogiri 1.4.2"
+ end
+
+ it "will add the resolve for the current platform" do
+ pending
+ end
end \ No newline at end of file