test/test_testrocket.rb in testrocket-0.0.1 vs test/test_testrocket.rb in testrocket-0.0.2
- old
+ new
@@ -1,6 +1,6 @@
-require 'helper'
+require_relative 'helper'
describe TestRocket do
it "should find emptiness non-truthful by default" do
(+->{}).must_match(/FAIL/)
end
@@ -18,6 +18,16 @@
end
it "should fail a simple correct assertion assumed to fail" do
(-->{ 2 + 2 == 4 }).must_match(/FAIL/)
end
-end
\ No newline at end of file
+
+ it "should give a pending notice" do
+ (~->{ "a pending test" }).must_match(/PENDING/)
+ (~->{ "a pending test" }).must_match(/a pending test/)
+ end
+
+ it "should fire a description rocket" do
+ (!->{ "a description" }).must_match(/FIRE/)
+ (!->{ "a description" }).must_match(/a description/)
+ end
+end