summaryrefslogtreecommitdiff
path: root/spec/lock
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-01 17:05:12 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-01 21:46:33 -0700
commit0ffe385f5889d3cb45dfd1d7cb4d95ad8e786df3 (patch)
tree7e157fe863656854ac5836bcb06989c4c729ff98 /spec/lock
parent33f8e7d73077d4f8b57387ec44887d0a7f70594f (diff)
downloadbundler-0ffe385f5889d3cb45dfd1d7cb4d95ad8e786df3.tar.gz
wip
Diffstat (limited to 'spec/lock')
-rw-r--r--spec/lock/flex_spec.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/lock/flex_spec.rb b/spec/lock/flex_spec.rb
index 66fe86d980..e31e55a070 100644
--- a/spec/lock/flex_spec.rb
+++ b/spec/lock/flex_spec.rb
@@ -414,4 +414,28 @@ describe "the lockfile format" do
rack
G
end
+
+ it "persists the spec's platform to the lockfile" do
+ build_gem "platform_specific", "1.0.0", :to_system => true do |s|
+ s.platform = Gem::Platform.local
+ end
+
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "platform_specific"
+ G
+
+ lockfile_should_be <<-G
+ GEM
+ remote: file:#{gem_repo1}/
+ specs:
+ platform_specific (1.0.0-#{Gem::Platform.local})
+
+ PLATFORMS
+ #{Gem::Platform.local}
+
+ DEPENDENCIES
+ platform_specific
+ G
+ end
end \ No newline at end of file