test/application/test_minisip.rb in csd-0.1.17 vs test/application/test_minisip.rb in csd-0.1.18

- old
+ new

@@ -51,18 +51,19 @@ should "know how to checkout the default branch of the source code" do out, err = capture { Core.checkout } assert_match /git clone /, out assert_no_match /git pull/, out + assert_no_match /git checkout/, out assert err.empty? end should "know how to checkout a particular branch of the source code" do Options.branch = 'cuttingedge' out, err = capture { Core.checkout } assert_match /git clone /, out - assert_match /git pull .+ cuttingedge/, out + assert_match /git checkout .+ cuttingedge/, out assert err.empty? end should "use sudo make install instead of make install by default" do out, err = capture { Core.compile } @@ -79,9 +80,17 @@ should "remove ffmpeg before compiling minisip" do Options.debug = true out, err = capture { Core.compile } assert_match /MILESTONE: removing_ffmpeg.+MILESTONE: processing_libminisip/m, out assert_no_match /MILESTONE: processing_libminisip.+MILESTONE: removing_ffmpeg/m, out + end + + should "not link the library in this-user-mode" do + out, err = capture { Core.compile } + assert_match /ldconfig/, out + Options.this_user=true + out, err = capture { Core.compile } + assert_no_match /ldconfig/, out end end # context "in theory when compiling" context "in practice" do