[DRE-commits] [librarian-puppet] 26/97: Fix spec for ruby 1.8
Stig Sandbeck Mathisen
ssm at debian.org
Tue Mar 11 12:12:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository librarian-puppet.
commit 98bf90355091d474bddbd4692603b888175d44c3
Author: Carlos Sanchez <csanchez at maestrodev.com>
Date: Tue Dec 10 22:09:54 2013 +0100
Fix spec for ruby 1.8
---
spec/requirement_spec.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/spec/requirement_spec.rb b/spec/requirement_spec.rb
index 5a5f166..0d1993b 100644
--- a/spec/requirement_spec.rb
+++ b/spec/requirement_spec.rb
@@ -13,6 +13,7 @@ describe Librarian::Puppet::Requirement do
it 'should print to_s' do
described_class.new('1.x').to_s.should eq('~> 1.0')
- described_class.new('>=1.1.0 <2.0.0').to_s.should eq("[\">=1.1.0\", \"<2.0.0\"]")
+ expected = RUBY_VERSION =~ /^1\.8\./ ? ">=1.1.0<2.0.0" : "[\">=1.1.0\", \"<2.0.0\"]"
+ described_class.new('>=1.1.0 <2.0.0').to_s.should eq(expected)
end
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git
More information about the Pkg-ruby-extras-commits
mailing list