summaryrefslogtreecommitdiff
path: root/spec/commands/config_spec.rb
diff options
context:
space:
mode:
authorKashyap <kashyap.kmbc@gmail.com>2014-01-31 14:11:25 +0530
committerKashyap <kashyap.kmbc@gmail.com>2014-02-01 05:59:14 +0530
commit0dfbee19d5624df69d30dbc8893faa21b8e3ee6e (patch)
tree7baeb031d5bdfc61918030e329a000f749da5558 /spec/commands/config_spec.rb
parent1774cf05bf2179e2b4cef5a30a2559f0de2a471e (diff)
downloadbundler-0dfbee19d5624df69d30dbc8893faa21b8e3ee6e.tar.gz
Use a new-line compatible regex for bundle config
* The option :line_width is available only in the YAML library and not in the older Syck and since we need to cater to installations that run Ruby versions below 1.9, this solution is not useful. * The new regex will take into account newlines and will parse the configuration options accordingly. This makes it work even in Ruby 1.8.7
Diffstat (limited to 'spec/commands/config_spec.rb')
-rw-r--r--spec/commands/config_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb
index 590bdfe1fc..964e1d881e 100644
--- a/spec/commands/config_spec.rb
+++ b/spec/commands/config_spec.rb
@@ -214,13 +214,13 @@ E
describe "very long lines" do
before(:each) { bundle :install }
let(:long_string) do
- '--with-xml2-include=/usr/pkg/include/libxm l2 --with-xml2-lib=/usr/pkg/lib --with-xslt-dir=/usr/pkg'
+ "--with-xml2-include=/usr/pkg/include/libxml2 --with-xml2-lib=/usr/pkg/lib --with-xslt-dir=/usr/pkg"
end
it "doesn't wrap values" do
- bundle "config foo.name '#{long_string}'"
- run "puts Bundler.settings['foo.name']"
- expect(out).to eq(long_string)
+ bundle "config foo #{long_string}"
+ run "puts Bundler.settings[:foo]"
+ expect(out).to match(long_string)
end
end