summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-09-13 01:25:00 +0900
committerTerence Lee <hone02@gmail.com>2012-09-13 01:25:00 +0900
commit9549618459ac92b098d81e2d7fc09c455a6956d3 (patch)
tree3f83f08681c00fe76dd54918b4204ac0b42bd334
parent0e7dfde6d7ebc07b4a88a6feffab7f6d1f03ef48 (diff)
downloadbundler-9549618459ac92b098d81e2d7fc09c455a6956d3.tar.gz
test if no ruby version is specified for platform --ruby
-rw-r--r--spec/other/platform_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/other/platform_spec.rb b/spec/other/platform_spec.rb
index 9bc786f27b..93d5ea7361 100644
--- a/spec/other/platform_spec.rb
+++ b/spec/other/platform_spec.rb
@@ -158,6 +158,19 @@ G
exitstatus.should_not == 0
end
+
+ it "should print if no ruby version is specified" do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+
+ gem "foo"
+ G
+
+ bundle "platform --ruby"
+ puts err
+
+ out.should eq("No ruby version specified")
+ end
end
let(:ruby_version_correct) { "ruby \"#{RUBY_VERSION}\", :engine => \"#{local_ruby_engine}\", :engine_version => \"#{local_engine_version}\"" }