switch to use rspec3
This commit is contained in:
parent
ed837436d6
commit
681373efe0
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2014/10/17 17:03:27 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2014/10/17 18:00:35 jasper Exp $
|
||||
|
||||
COMMENT= simple pluggable hierarchical database
|
||||
|
||||
@ -23,8 +23,8 @@ BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= devel/ruby-deep_merge,${MODRUBY_FLAVOR} \
|
||||
devel/ruby-json_pure,${MODRUBY_FLAVOR}
|
||||
|
||||
#TEST_DEPENDS= devel/ruby-mocha,${MODRUBY_FLAVOR}
|
||||
#MODRUBY_TEST= rspec2
|
||||
TEST_DEPENDS= devel/ruby-mocha,${MODRUBY_FLAVOR}
|
||||
MODRUBY_TEST= rspec3
|
||||
|
||||
pre-configure:
|
||||
perl -pi -e 's,/var/lib,/var/db,g' \
|
||||
|
29
databases/ruby-hiera/patches/patch-spec_unit_util_spec_rb
Normal file
29
databases/ruby-hiera/patches/patch-spec_unit_util_spec_rb
Normal file
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-spec_unit_util_spec_rb,v 1.1 2014/10/17 18:00:35 jasper Exp $
|
||||
|
||||
Make this work with rspec3.
|
||||
|
||||
--- spec/unit/util_spec.rb.orig Fri Oct 17 19:57:43 2014
|
||||
+++ spec/unit/util_spec.rb Fri Oct 17 19:58:40 2014
|
||||
@@ -4,19 +4,19 @@ describe Hiera::Util do
|
||||
describe 'Hiera::Util.posix?' do
|
||||
it 'should return true on posix systems' do
|
||||
Etc.expects(:getpwuid).with(0).returns(true)
|
||||
- Hiera::Util.posix?.should be_true
|
||||
+ Hiera::Util.posix?.should be true
|
||||
end
|
||||
|
||||
it 'should return false on non posix systems' do
|
||||
Etc.expects(:getpwuid).with(0).returns(nil)
|
||||
- Hiera::Util.posix?.should be_false
|
||||
+ Hiera::Util.posix?.should be_falsy
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Hiera::Util.microsoft_windows?' do
|
||||
it 'should return false on posix systems' do
|
||||
Hiera::Util.expects(:file_alt_separator).returns(nil)
|
||||
- Hiera::Util.microsoft_windows?.should be_false
|
||||
+ Hiera::Util.microsoft_windows?.should be_falsy
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user