patch-spec_unit_util_spec_rb 981 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-spec_unit_util_spec_rb,v 1.1 2014/10/17 18:00:35 jasper Exp $
  2. Make this work with rspec3.
  3. --- spec/unit/util_spec.rb.orig Fri Oct 17 19:57:43 2014
  4. +++ spec/unit/util_spec.rb Fri Oct 17 19:58:40 2014
  5. @@ -4,19 +4,19 @@ describe Hiera::Util do
  6. describe 'Hiera::Util.posix?' do
  7. it 'should return true on posix systems' do
  8. Etc.expects(:getpwuid).with(0).returns(true)
  9. - Hiera::Util.posix?.should be_true
  10. + Hiera::Util.posix?.should be true
  11. end
  12. it 'should return false on non posix systems' do
  13. Etc.expects(:getpwuid).with(0).returns(nil)
  14. - Hiera::Util.posix?.should be_false
  15. + Hiera::Util.posix?.should be_falsy
  16. end
  17. end
  18. describe 'Hiera::Util.microsoft_windows?' do
  19. it 'should return false on posix systems' do
  20. Hiera::Util.expects(:file_alt_separator).returns(nil)
  21. - Hiera::Util.microsoft_windows?.should be_false
  22. + Hiera::Util.microsoft_windows?.should be_falsy
  23. end
  24. end