spec/osgi/version_spec.rb in buildr4osgi-0.9.2 vs spec/osgi/version_spec.rb in buildr4osgi-0.9.3
- old
+ new
@@ -122,6 +122,12 @@
r2.max = OSGi::Version.new("2.0.0")
r2.min_inclusive = true
r2.to_s.should eql("[1.0.0,2.0.0)")
end
+ it 'should be able to consume a range with a space before or after the two limits' do
+ OSGi::VersionRange.parse("[1.0.0, 2.0.0)").should be_instance_of(OSGi::VersionRange)
+ OSGi::VersionRange.parse("[1.0.0 , 2.0.0)").should be_instance_of(OSGi::VersionRange)
+ OSGi::VersionRange.parse("[1.0.0 ,2.0.0)").should be_instance_of(OSGi::VersionRange)
+ end
+
end
\ No newline at end of file